Support » Plugin: Theme My Login » Integration with Woocommerce – Combining profile page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    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 );

    Which file does this snippet go in?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integration with Woocommerce – Combining profile page’ is closed to new replies.