I am trying to change the title that is displayed to the user on several of the login pages. I have read the forum post here regarding how to achieve this and am having no success. I have also read through the codex section on filters and cannot find a solution.
I have the following code saved in theme-my-login-custom.php in my template directory:
<?php
function tml_title_filter( $title, $action ) {
if ( $action == 'profile' )
return __( 'Your Account' );
return $title;
}
add_filter( 'tml_title', 'tml_title_filter', 10, 2 );
?>
I am using wp_title('') in 2 places outside of The Loop and the_title() inside one of the loops (I have multiple loops to ensure the breadcrumbs plugin I am using works correctly).
Have I missed a step out somewhere? So I need to enable filters somewhere in my custom theme or in the plugin that I am not aware of?
Are there any known conflictions between theme-my-login and other plugins such as membership?
I appreciate any help on this issue.