Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove_action sitewide_notices not working

  • @mi423

    Participant

    Hey.

    I struggle with the removal action sitewide_notices.
    I want to replace it with my own function, my_own_sitewide_notice, which works correctly. I get two notice at one time 🙂

    But i can’t remove default add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 );
    link to file with this action: https://github.com/buddypress/BuddyPress/blob/d5232812a8fbb70801351d27c7e5b7cf29dbdc30/src/bp-templates/bp-legacy/buddypress-functions.php

    What I tried:
    All with global $BP_Legacy

    $aaaaa = BP_Legacy_::setup_actions();
    remove_action( 'wp_footer',  array( $aaaaa, 'sitewide_notices' ), 9999 );
    $aaaaa = BP_Legacy;
    remove_action( 'wp_footer',  array( $aaaaa, 'sitewide_notices' ), 9999 );

    Thanks for every suggestion.

  • The topic ‘remove_action sitewide_notices not working’ is closed to new replies.
Skip to toolbar