remove_action sitewide_notices not working
- 
		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.phpWhat I tried: 
 All withglobal $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. 
- You must be logged in to reply to this topic.