WordPress action hook

wbcom_add_header_menu

Fired by 8 WordPress plugins, running on 3,910+ sites between them.

How to use wbcom_add_header_menu

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( 'wbcom_add_header_menu', function() {
	// Your code runs here.
}, 10, 1 );

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

8 plugins that fire wbcom_add_header_menu

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

  1. Wbcom Designs icon Wbcom Designs3,000+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:243
  2. Wbcom Designs icon Wbcom Designs300+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:312
  3. Audio Preview for WooCommerce icon Audio Preview for WooCommerce200+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:329
  4. Document Preview For WooCommerce icon Document Preview For WooCommerce100+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:314
  5. Wbcom Designs icon Wbcom Designs100+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:314
  6. Todo for BuddyPress & BuddyBoss icon Todo for BuddyPress & BuddyBoss100+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:304
  7. Wbcom Designs icon Wbcom Designs90+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:314
  8. Price Quote for WooCommerce icon Price Quote for WooCommerce20+ installs do_action( 'wbcom_add_header_menu' ) admin/wbcom/wbcom-admin-settings.php:278

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.