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

    (@jfarthing84)

    You need to enclose the code in PHP tags.

    <?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' );
    Thread Starter Linton Hale

    (@lintonhale)

    Thanks Jeff! Of course that did it… I appreciate your time.

    Hi Jeff,

    I too am having the same issue with bbPress plugin causing admin redirect to dashboard to stop working.

    I’ve disabled all plugins except for TML and bbPress but still get the same issue.

    Re-enable all plugins and deactivate bbPress and the admin login redirect works correctly once again.

    I implemented the php code into my child theme but it gives a php error on my site.

    I added the code exactly to the file theme-my-login-custom.php under the Theme My Login plugin directory but that didn’t work either.

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

    My site is https://www.ArchEnemys.com

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The file theme-my-login-custom.php goes directly into your plugins directory, not TML’s.

    …and that fixed it. Thank you. Love this plugin by the way…

    I get http…/logout/?_wpnonce=xxxxxxxx with a blank page with that fix. I get something similar with login but it works ok on my localhost with the same web.
    Any suggestion?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bbpress breaking TML redirects, fix Jeff provided seems promising, but…!’ is closed to new replies.