WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Integration with Woocommerce - Combining profile page (3 posts)

  1. michaeljwilliem
    Member
    Posted 11 months ago #

    Hi!

    I like the way this plugin works to change wp-login.php without any hassle.

    I've been looking for a way to redirect "/log-in" page to Woocommerce's "My Account" page if users are logged in but can't find a way to do it.

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

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 11 months ago #

    function tml_template_redirect() {
    	if ( Theme_My_Login::is_tml_page( 'login' ) && is_user_logged_in() ) {
    		$redirect_to = 'YOUR URL HERE';
    		wp_redirect( $redirect_to );
    		exit;
    	}
    }
    add_action( 'template_redirect', 'tml_template_redirect', 8 );
  3. joinfof
    Member
    Posted 5 months ago #

    Which file does this snippet go in?

Reply

You must log in to post.

About this Plugin

About this Topic