WordPress filter hook

eca_dashboard_header_plugin_context_key

Fired by 6 WordPress plugins, running on 34K+ sites between them.

“Filter the addon key used for the header plugin context label.”

How to use eca_dashboard_header_plugin_context_key

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

functions.php
add_filter( 'eca_dashboard_header_plugin_context_key', function( $addon_key, $page ) {
	// Change $addon_key here.
	return $addon_key;
}, 10, 2 );

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.

6 plugins that fire eca_dashboard_header_plugin_context_key

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 apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:443
  2. Events Widgets For Elementor And The Events Calendar icon Events Widgets For Elementor And The Events Calendar10,000+ installs apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:443
  3. Event Single Page Builder For The Events Calendar icon Event Single Page Builder For The Events Calendar6,000+ installs apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:443
  4. Event Countdown for The Events Calendar icon Event Countdown for The Events Calendar3,000+ installs apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:442
  5. Events Search & Filter Bar for The Events Calendar icon Events Search & Filter Bar for The Events Calendar3,000+ installs apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:438
  6. Events Calendar Modules for Divi icon Events Calendar Modules for Divi2,000+ installs apply_filters( 'eca_dashboard_header_plugin_context_key', $addon_key, $page ) admin/eca-dashboard/includes/class-eca-dashboard-page.php:443

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.