WordPress filter hook

bsf_admin_notices_user_cap_check

Fired by 16 WordPress plugins, running on 5.5M+ sites between them.

How to use bsf_admin_notices_user_cap_check

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'bsf_admin_notices_user_cap_check', function( $cap_check ) {
	// Change $cap_check here.
	return $cap_check;
}, 10, 1 );

Argument names come from Ultimate Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

16 plugins that fire bsf_admin_notices_user_cap_check

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Ultimate Addons for Elementor icon Ultimate Addons for Elementor2+ million installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:156
  2. Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg icon Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:156
  3. Spectra Legacy icon Spectra Legacy1+ million installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/astra-notices/class-bsf-admin-notices.php:141
  4. SureForms icon SureForms500,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:141
  5. SureRank SEO icon SureRank SEO300,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:141
  6. CartFlows icon CartFlows200,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) libraries/astra-notices/class-bsf-admin-notices.php:156
  7. SureMail icon SureMail200,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:141
  8. Appointment Booking Plugin icon Appointment Booking Plugin100,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/kit/astra-notices/class-bsf-admin-notices.php:156
  9. SureCookie icon SureCookie80,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:156
  10. Spectra Blocks icon Spectra Blocks70,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/astra-notices/class-bsf-admin-notices.php:156
  11. Power Coupons for WooCommerce icon Power Coupons for WooCommerce30,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/astra-notices/class-bsf-admin-notices.php:156
  12. Schema icon Schema30,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/notices/class-bsf-admin-notices.php:156
  13. Ultimate Addons for Beaver Builder (UABB) icon Ultimate Addons for Beaver Builder (UABB)20,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/astra-notices/class-bsf-admin-notices.php:156
  14. SureDonation icon SureDonation4,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:156
  15. SureMembers icon SureMembers2,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) lib/astra-notices/class-bsf-admin-notices.php:156
  16. SureDash icon SureDash1,000+ installs apply_filters( 'bsf_admin_notices_user_cap_check', $cap_check ) inc/lib/astra-notices/class-bsf-admin-notices.php:141

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.