-
Hi Team,
Thanks for such a great plugin.
We are trying to remove action which is responsible for setting up redirections logic and we don’t need any sought of redirection system in BuddyPress. And our code seems to be not working, we have tried all the possible ways and we checked code and found that its loaded on anonymous class way not in variable. So, there is no other way we can remove this action.
Here is code we are using in functions.phpfunction ntml_remove_action_rank_math(){
if(bp_current_component()){
remove_action(‘template_redirect’, array( ‘Redirections’,’do_redirection’), 11);
remove_filter(‘admin_enqueue_scripts’, array(‘Manager’,’setup’) , 5);
remove_filter(‘wp’, array( ‘Manager’, ‘setup’), 25);
}
}
add_action(‘init’,’ntml_remove_action_rank_math’);We are just trying to optimize our website because we have lot of database load in system already and we are remove extra stuff which is not necessary.
thank you!!!
Best Regards
Himanshu Ahuja
The ticket ‘Trying to Optimise the Database calls’ is closed to new replies.