• kamarr.cos

    (@kamarrcos)


    @jfarthing84
    I just recently came across a similar redirection conflict with woocommerce that you solved a few years back with a buddypress.

    The thread was titled, “Redirection module not sending to Referer”, and the author was AaronC.

    Your reply and solution was,

    “Just because bbPress has it’s own redirection settings, as does TML, doesn’t mean either one of them is doing anything wrong.

    Try adding this to wp-content/plugins/theme-my-login-custom.php:”

    function tml_init() {
    	remove_filter( 'login_redirect', 'bbp_redirect_login', 2,  3 );
    	remove_filter( 'logout_url',     'bbp_logout_url',     2,  2 );
    }
    add_action( 'bbp_init', 'tml_init' );
    	remove_filter( 'login_redirect', 'bbp_redirect_login', 2,  3 );
    	remove_filter( 'logout_url',     'bbp_logout_url',     2,  2 );
    }
    add_action( 'bbp_init', 'tml_init' );

    How would I modify this code for wooCommerce?

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

    (@jfarthing84)

    Search Woocommerce’s codebase for login_redirect to figure out what their callback is called.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirection module not sending to redirecting page’ is closed to new replies.