WordPress action hook
astra_notice_before_markup
Fired by 26 WordPress plugins, running on 6.7M+ sites between them.
How to use astra_notice_before_markup
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'astra_notice_before_markup', function() {
// Your code runs here.
}, 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.
26 plugins that fire astra_notice_before_markup
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Ultimate Addons for Elementor2+ million installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:336 -
Starter Templates: AI-Powered Website Templates for Elementor & Gutenberg1+ million installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:336 -
Spectra Legacy1+ million installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-bsf-admin-notices.php:321 -
SureForms500,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:321 -
Custom Fonts400,000+ installs
do_action( 'astra_notice_before_markup' )lib/notices/class-astra-notices.php:275 -
SureRank SEO300,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:321 -
Cart Abandonment Recovery for WooCommerce300,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-astra-notices.php:302 -
CartFlows200,000+ installs
do_action( 'astra_notice_before_markup' )libraries/astra-notices/class-bsf-admin-notices.php:336 -
SureMail200,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:321 -
Astra Widgets200,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-astra-notices.php:273 -
Appointment Booking Plugin100,000+ installs
do_action( 'astra_notice_before_markup' )lib/kit/astra-notices/class-bsf-admin-notices.php:336 -
SureCookie80,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:336 -
Lightweight Sidebar Manager70,000+ installs
do_action( 'astra_notice_before_markup' )lib/notices/class-astra-notices.php:305 -
Spectra Blocks70,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-bsf-admin-notices.php:336 -
Modern Cart60,000+ installs
do_action( 'astra_notice_before_markup' )inc/libraries/astra-notices/class-astra-notices.php:305 -
Custom Adobe Fonts (Typekit)60,000+ installs
do_action( 'astra_notice_before_markup' )lib/notices/class-astra-notices.php:312 -
Customizer Search40,000+ installs
do_action( 'astra_notice_before_markup' )lib/notices/class-astra-notices.php:312 -
Power Coupons for WooCommerce30,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-bsf-admin-notices.php:336 -
Schema30,000+ installs
do_action( 'astra_notice_before_markup' )lib/notices/class-bsf-admin-notices.php:336 -
Fullwidth Templates for Any Theme & Page Builder20,000+ installs
do_action( 'astra_notice_before_markup' )admin/notices/class-astra-notices.php:232 -
Ultimate Addons for Beaver Builder (UABB)20,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-bsf-admin-notices.php:336 -
Header Footer for Beaver Builder10,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-astra-notices.php:301 -
SureDonation4,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:336 -
SureMembers2,000+ installs
do_action( 'astra_notice_before_markup' )lib/astra-notices/class-bsf-admin-notices.php:336 -
SureDash1,000+ installs
do_action( 'astra_notice_before_markup' )inc/lib/astra-notices/class-bsf-admin-notices.php:321 -
Price Changer For WooCommerce200+ installs
do_action( 'astra_notice_before_markup' )init/astra/class-plugin-astra-notices.php:269
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.