• Hey! I just want to disable the auto-page redirect from /messages/ to /bp-messages/ so I can still use the standard /messages/ page for some instances. Still want to create /bp-messages/ though. Can you help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tomh8109

    (@tomh8109)

    A bit more information… I’m basically only using BP Better Messages for the chats (which I love!), would like to keep the original page intact.

    Plugin Author wordplus

    (@wordplus)

    Hi there!

    Havent idea what the sense to do this, but you can try something like this:

    add_action( 'after_setup_theme', function(){
        remove_action( 'init', array( BP_Better_Messages_Component::instance(), 'remove_standard_tab' ) );
        remove_action( 'bp_init', array( BP_Better_Messages_Hooks::instance(), 'redirect_standard_component' ) );
        remove_action( 'bp_get_message_thread_view_link',  array(  BP_Better_Messages_Hooks::instance(), 'thread_link' ), 20, 2 );
    }, 100);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Auto Page Redirect’ is closed to new replies.