• Resolved TCBarrett

    (@tcbarrett)


    Hi

    I have a site where registration is handled by a third party. So I have WordPress registration disabled. However, I don’t want new registrants to be redirected to /log-in/?registration=disabled. I do have a form that captures and submits registration details to the third party. It cannot sit on the /registration/ page.

    Is there a way to tweak these settings to have visitors land on my sign up page?

    http://wordpress.org/plugins/theme-my-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, have you tried this?:

    function tml_action_url_filter( $url, $action, $instance ) {
    	if ( 'register' == $action )
    		return 'url of your sign up page';
    }
    add_filter( 'tml_action_url', 'tml_action_url_filter', 10, 3 );

    Thread Starter TCBarrett

    (@tcbarrett)

    Hi Manitoba,

    Yes, I have tried that. It redirects me to /log-in/?registration=disabled.

    Thread Starter TCBarrett

    (@tcbarrett)

    This looks better:

    add_action( 'tml_request_register', 'tcb_tml_redirect_registration' );
    function tcb_tml_redirect_registration(){
      wp_redirect( home_url('/subscribe') );
      exit;
    }

    Cool!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable / Redirect registration disable link’ is closed to new replies.