kriizz (@kriizz)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • kriizz
    Participant

    @kriizz

    Hi,

    just had the same Problem with “bbp_new_topic_handler”.
    Maybe my solution will help:

    /*
    	After all Plugins are loaded, remove bbp_action hook.
            Remove it after all plugins are loaded, because hook'S maybe not available at the   moment you want to remove it. 
            After that, override the add_Action with a copy of the original function. Do all your changes in your own function
    
    */
    function remove_bbp_new_topic_handler() {
    	remove_action('bbp_post_request', 'bbp_new_topic_handler',10);
    	add_action('bbp_post_request', 'my_bbp_new_topic_handler',10);
    }
    add_action( 'plugins_loaded', 'remove_bbp_new_topic_handler' );
    
    function my_bbp_new_topic_handler( $action = '' ) {
      /* copy of bbp_new_topic_handler and your changes */
    }
Viewing 1 replies (of 1 total)