WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Theme My Login] Change 'Log In' to 'Member Login'

[Resolved] [Plugin: Theme My Login] Change 'Log In' to 'Member Login'

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

    @jfarthing84

    Modify/create wp-content/plugins/theme-my-login-custom.php and add the following:

    function tml_title_filter( $title, $action ) {
    	if ( 'login' == $action )
    		$title = 'Member Login';
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title_filter', 20, 2 );
    inprojectcloud
    Member

    @inprojectcloud

    Hi,

    It didn’t work for me. Here is what happened:

    1. I created the file in the plugin directory so that it does not get erased when I upgrade the plugin.

    2. Both on the frontend and backend, I see – “function tml_title_filter( $title, $action ) { if ( ‘login’ == $action ) $title = ‘MAKE AN ANNOUNCEMENT FOR FREE’; return $title; } add_filter( ‘tml_title’, ‘tml_title_filter’, 20, 2 ); ” on the top.

    I’ve removed the file from the plugin directory now.

    I’m using the latest version origin theme and wordpress.

    Plugin Author Jeff Farthing
    Participant

    @jfarthing84

    You need to add an opening PHP tag to the file:

    <?php
    
    function tml_title_filter( $title, $action ) {
    	if ( 'login' == $action )
    		$title = 'Member Login';
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title_filter', 20, 2 );
    inprojectcloud
    Member

    @inprojectcloud

    Hey!

    Thanks! This does the trick. Unfortunately, it changes the welcome message also. It’s now a static message.

    Home Page

    Plugin Author Jeff Farthing
    Participant

    @jfarthing84

    <?php
    
    function tml_title_filter( $title, $action ) {
    	if ( 'login' == $action && ! is_user_logged_in() )
    		$title = 'Member Login';
    	return $title;
    }
    add_filter( 'tml_title', 'tml_title_filter', 20, 2 );

    It works fine when you are at the principal page… but if you click en “forgot password”, for exemple, the new $title appears out of the box…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Theme My Login] Change 'Log In' to 'Member Login'’ is closed to new replies.