Support » Plugin: WP-Members: Membership Framework » [Plugin: WP-Members} Sidebar Login Widget changes

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler


    wpmem_sidebar_status is the filter for the user’s login status – you could use that and php’s str_replace function.

    I really am not a php programmer. So I am not fully understanding functions and filters.

    What is the php code that I would insert into my child theme’s functions.php file in order to change the verbage from “click here to logout” to just “logout” please?

    Thank you!

    Plugin Author Chad Butler


    If you want to be able to effectively work with WordPress, you probably should invest some time into learning php so you can use WordPress’ action and filter hooks.

    This filter is the exact same concept as the one you used over here: Same concept – different filter. In both of these I even added specific comments to explain to you what the filter is doing so you can expand on this on your own:

    add_filter( 'wpmem_sidebar_status', 'my_sidebar_status_filter' );
    function my_sidebar_status_filter( $string ) {
    	// the html of the form is the parameter $string
    	// use str_replace like:
    	// $new_string = str_replace( $needle, $replacement, $haystack );
    	$string  = str_replace( 'click here to logout', 'logout', $string );
    	return $string;
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Members} Sidebar Login Widget changes’ is closed to new replies.