Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can’t remove actions using remove_action() calls in function.php

  • I’m trying to remove the buddypress admin bar hooks ‘bp_adminbar_logo’ and bp_adminbar_random_menu. I’ve tried the following in my theme functions.php:

    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_logo’);
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100);
    (I verified the correct $priority)

    and I’ve tried:

    add_action(‘bp_adminbar_logo’, ‘bp_remove_admin_logo’);
    function bp_remove_admin_logo() {
    }

    add_action(‘bp_adminbar_random_menu’, ‘bp_remove_admin_random_menu’);
    function bp_remove_admin_random_menu() {
    }

    Neither approach had any effect (items are still in bp admin bar). Am I calling the remove_action in the wrong file?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t remove actions using remove_action() calls in function.php’ is closed to new replies.
Skip to toolbar