WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Use different form for registration (3 posts)

  1. argeee
    Member
    Posted 3 years ago #

    Hi Jeff,
    I would like for the user to be redirected to a different page when they want to register instead of the register-form.php.

    Is there any way for me to substitute the url on the "Register" link?

    Thanks in advance and congrats on the plugin.

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 3 years ago #

    Create the file wp-content/plugins/theme-my-login-custom.php if you haven't already. Then, add the following to it:

    <?php function tml_action_url_filter( $url, $action, $instance ) {
    	if ( 'register' == $action )
    		return 'http://www.wordpress.org';
    }
    add_filter( 'tml_action_url', 'tml_action_url_filter', 10, 3 ); ?>

    Of course, replace http://www.wordpress.org with your new URL.

  3. argeee
    Member
    Posted 3 years ago #

    Thanks Jeff. Worked like a charm.

    PS Sorry for taking so long to reply

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic