Title: Force admin notice not working
Last modified: May 2, 2023

---

# Force admin notice not working

 *  [pixelshrink](https://wordpress.org/support/users/pixelshrink/)
 * (@pixelshrink)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/force-admin-notice-not-working/)
 * Hi, thanks for adding bpges_force_immediate_admin_notice(). I can’t seem to get
   it to work though – add_filter( ‘bpges_force_immediate_admin_notice’, ‘__return_true’);
   has been added to functions.php but when an email is sent via the ‘Send an email
   notice to everyone in the group’ form on the group’s /admin/notifications/ page,
   it only gets sent to those members who are subscribed, and not to ones who have
   chosen the ‘No email’ setting. Isn’t bpges_force_immediate_admin_notice() supposed
   to send emails to all members even if they are on the No email setting?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/force-admin-notice-not-working/#post-16704482)
 * Yes, the filter is intended to work this way, and in my tests that’s how it’s
   working.
 * Looking over the code, there’s a chance that a user would be excluded from the
   email if for some reason they weren’t listed in the `wp_bpges_subscriptions` 
   table at all. This shouldn’t happen in theory; users with the ‘No email’ setting
   should have a row in this table that says `'no'`. But perhaps you could check:`
   SELECT * FROM wp_bpges_subscriptions WHERE user_id = 123 AND group_id = 456` (
   swap out the proper IDs, obviously)
 *  Thread Starter [pixelshrink](https://wordpress.org/support/users/pixelshrink/)
 * (@pixelshrink)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/force-admin-notice-not-working/#post-16714183)
 * Thanks very much for the reply, indeed only the member that is subscribed to 
   email is in that table, and not the 2 that are on the ‘No email’ setting.
 * Maybe it’s worth saying what I’m trying to achieve: I want to be able to filter
   out Buddypress Docs activity notifications from [https://en-gb.wordpress.org/plugins/buddypress-group-email-subscription/](https://en-gb.wordpress.org/plugins/buddypress-group-email-subscription/),
   so that users only receive the messages that are actively sent out and not ‘X
   has edited this document’ ones. I thought sending out ‘force admin’ messages 
   instead of ordinary activity feed messages would do the job, as long as everyone
   receives them. Any ideas gratefully received.
    -  This reply was modified 3 years, 2 months ago by [pixelshrink](https://wordpress.org/support/users/pixelshrink/).
    -  This reply was modified 3 years, 2 months ago by [pixelshrink](https://wordpress.org/support/users/pixelshrink/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Force admin notice not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-group-email-subscription.
   svg)
 * [BuddyPress Group Email Subscription](https://wordpress.org/plugins/buddypress-group-email-subscription/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-group-email-subscription/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-group-email-subscription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-group-email-subscription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-group-email-subscription/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pixelshrink](https://wordpress.org/support/users/pixelshrink/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/force-admin-notice-not-working/#post-16714183)
 * Status: not resolved