WordPress action hook

ect_display_admin_notices

Fired by 7 WordPress plugins, running on 36K+ sites between them.

How to use ect_display_admin_notices

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:

functions.php
add_action( 'ect_display_admin_notices', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from Events Shortcodes For The Events Calendar's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

7 plugins that fire ect_display_admin_notices

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

  1. Events Shortcodes For The Events Calendar icon Events Shortcodes For The Events Calendar10,000+ installs do_action( 'ect_display_admin_notices' ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:550
  2. Events Widgets For Elementor And The Events Calendar icon Events Widgets For Elementor And The Events Calendar10,000+ installs do_action( 'ect_display_admin_notices' ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:550
  3. Event Single Page Builder For The Events Calendar icon Event Single Page Builder For The Events Calendar6,000+ installs do_action( 'ect_display_admin_notices' ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:550
  4. Event Countdown for The Events Calendar icon Event Countdown for The Events Calendar3,000+ installs do_action( 'ect_display_admin_notices' ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:549
  5. Events Search & Filter Bar for The Events Calendar icon Events Search & Filter Bar for The Events Calendar3,000+ installs do_action( 'ect_display_admin_notices' ) admin/class-ecsa-notices.php:205
  6. Events Calendar Modules for Divi icon Events Calendar Modules for Divi2,000+ installs do_action( 'ect_display_admin_notices' ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:550
  7. Events Block For The Events Calendar icon Events Block For The Events Calendar2,000+ installs do_action( 'ect_display_admin_notices' ) admin/events-addon-page/includes/dashboard-header.php:64

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.