WordPress filter hook
eca_dashboard_header_plugin_context
Fired by 6 WordPress plugins, running on 34K+ sites between them.
“Filter the final header plugin context label.”
How to use eca_dashboard_header_plugin_context
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:
add_filter( 'eca_dashboard_header_plugin_context', function( $label, $addon_key ) {
// Change $label here.
return $label;
}, 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
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Events Shortcodes For The Events Calendar10,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:485 -
Events Widgets For Elementor And The Events Calendar10,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:485 -
Event Single Page Builder For The Events Calendar6,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:485 -
Event Countdown for The Events Calendar3,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:484 -
Events Search & Filter Bar for The Events Calendar3,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:480 -
Events Calendar Modules for Divi2,000+ installs
apply_filters( 'eca_dashboard_header_plugin_context', $label, $addon_key )admin/eca-dashboard/includes/class-eca-dashboard-page.php:485
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.