• Resolved nudeweb

    (@nudeweb)


    Hi

    For some reason the action links that appear the bottom of say login or register page are pointing to the wrong URLs. I managed to change the register link on the login page by adding the following to my functions.php file. But how can I fix all of them?

    function tml_action_url( $url, $action, $instance ) {
    	if ( 'register' == $action )
    		$url = '/register/';
    	return $url;
    }
    add_filter( 'tml_action_url', 'tml_action_url', 10, 3 );

    I’m using all standard login & registration etc pages.

    https://www.ads-software.com/extend/plugins/theme-my-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • They show up in three template files, you can just add normal links to those? I did that and it works perfectly.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    function tml_action_url( $url, $action, $instance ) {
    	switch ( $action ) {
    		case 'register' :
    			$url = '/register/';
    			break;
    		case 'lostpassword' :
    			$url = '/lostpassword/';
    			break;
    		...
    	}
    	return $url;
    }
    add_filter( 'tml_action_url', 'tml_action_url', 10, 3 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Action links link to wrong pages’ is closed to new replies.