Custom display of sitewide notices
-
When sending a sitewide notice, they automatically show up where
<?php wp_footer(); ?>
is called. In the temlate I’m working on, they’re supposed to show up in the sidebar though, which is done like so:<?php if ( bp_is_active( 'messages' ) ) : ?> <?php bp_message_get_notices(); ?> <?php endif; ?>
This causes the notices to show up in both places however. So my question is this:
how can I disable the messages from showing in the footer? I checked the code and saw they are registered as follows:add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 );
Is there a way to hook into wp_footer and get rid of these messages or even a better way?
Thanks!
—
BuddyPress v 2.1.1
WordPress v 3.9.1
Link: I’m working on a local vagrant box
- The topic ‘Custom display of sitewide notices’ is closed to new replies.