WordPress.org

Support

Support » Plugins and Hacks » Theme My Login » [Resolved] [Plugin: Theme My Login] How to Change the Sidebar Widget's "Welcome" Greeting

[Resolved] [Plugin: Theme My Login] How to Change the Sidebar Widget's "Welcome" Greeting

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Farthing

    @jfarthing84

    I would never recommend modifying core files. What happens when you update the plugin? You lose the changes. This is why I’ve provided numerous hooks throughout the plugin, in order to customize it properly.

    Ah, okay. Thanks for the advice.

    So what is the best way to change the “Welcome” greeting? One that will stay put when you update the plugin?

    Plugin Author Jeff Farthing

    @jfarthing84

    Create wp-content/plugins/theme-my-login-custom.php and add the following to it:

    <?php
    
    function tml_title( $title, $action ) {
    	if ( is_user_logged_in() )
    		$title = 'YOUR NEW MESSAGE';
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title', 10, 2 );

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Theme My Login] How to Change the Sidebar Widget's "Welcome" Greeting’ is closed to new replies.
Skip to toolbar