WordPress action hook

cmb2_init_hooks

Defined by CMB2 and fired by 22 plugins in total, running on 339K+ sites between them.

How to use cmb2_init_hooks

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

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

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

22 plugins that fire cmb2_init_hooks

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

  1. CMB2 icon CMB2300,000+ installs do_action( 'cmb2_init_hooks', $this ) includes/CMB2_Hookup.php:104
  2. My Private Site icon My Private Site10,000+ installs do_action( 'cmb2_init_hooks', $this ) library/cmb2/includes/CMB2_Hookup.php:104
  3. GamiPress icon GamiPress10,000+ installs do_action( 'cmb2_init_hooks', $this ) libraries/cmb2/includes/CMB2_Hookup.php:104
  4. AutomatorWP icon AutomatorWP6,000+ installs do_action( 'cmb2_init_hooks', $this ) libraries/cmb2/includes/CMB2_Hookup.php:104
  5. Cool Flipbox icon Cool Flipbox5,000+ installs do_action( 'cmb2_init_hooks', $this ) admin/CMB2/includes/CMB2_Hookup.php:106
  6. Podcast Subscribe Buttons icon Podcast Subscribe Buttons4,000+ installs do_action( 'cmb2_init_hooks', $this ) includes/CMB2/cmb2-plugin/includes/CMB2_Hookup.php:104
  7. WPBITS Addons For Elementor Page Builder icon WPBITS Addons For Elementor Page Builder2,000+ installs do_action( 'cmb2_init_hooks', $this ) includes/cmb2/includes/CMB2_Hookup.php:104
  8. Dynamic Team Manager icon Dynamic Team Manager900+ installs do_action( 'cmb2_init_hooks', $this ) lib/cmb2/includes/CMB2_Hookup.php:104
  9. CRT Addons Builder and Widgets for Elementor icon CRT Addons Builder and Widgets for Elementor300+ installs do_action( 'cmb2_init_hooks', $this ) includes/cmb2/includes/CMB2_Hookup.php:104
  10. MediaBlaster icon MediaBlaster200+ installs do_action( 'cmb2_init_hooks', $this ) lib/cmb2/includes/CMB2_Hookup.php:104
  11. Dynamic Product Category Grid, Slider for WooCommerce icon Dynamic Product Category Grid, Slider for WooCommerce200+ installs do_action( 'cmb2_init_hooks', $this ) lib/cmb2/includes/CMB2_Hookup.php:104
  12. CommonsBooking icon CommonsBooking200+ installs do_action( 'cmb2_init_hooks', $this ) vendor-prefixed/cmb2/cmb2/includes/CMB2_Hookup.php:104
  13. peLightbox Gallery Slider icon peLightbox Gallery Slider200+ installs do_action( 'cmb2_init_hooks', $this ) admin/src/CMB2/includes/CMB2_Hookup.php:104
  14. Niso Carousel Slider icon Niso Carousel Slider200+ installs do_action( 'cmb2_init_hooks', $this ) admin/src/cmb2/includes/CMB2_hookup.php:104
  15. ShortLinks Pro icon ShortLinks Pro100+ installs do_action( 'cmb2_init_hooks', $this ) libraries/cmb2/includes/CMB2_Hookup.php:104
  16. Tour Operator icon Tour Operator30+ installs do_action( 'cmb2_init_hooks', $this ) plugins/cmb2/includes/CMB2_Hookup.php:104
  17. BBForms icon BBForms20+ installs do_action( 'cmb2_init_hooks', $this ) libraries/cmb2/includes/CMB2_Hookup.php:104
  18. WhatAvatar icon WhatAvatar10+ installs do_action( 'cmb2_init_hooks', $this ) libraries/cmb2/includes/CMB2_Hookup.php:104
  19. Scheidungskostenrechner icon Scheidungskostenrechner10+ installs do_action( 'cmb2_init_hooks', $this ) includes/lib/cmb2/includes/CMB2_Hookup.php:104
  20. Mega Ad icon Mega Ad10+ installs do_action( 'cmb2_init_hooks', $this ) inc/cmb2/includes/CMB2_Hookup.php:104
  21. cubicFUSION Admin Enhancer icon cubicFUSION Admin EnhancerFewer than 10 installs do_action( 'cmb2_init_hooks', $this ) inc/cmb2/includes/CMB2_Hookup.php:104
  22. FavCRM for WooCommerce icon FavCRM for WooCommerceFewer than 10 installs do_action( 'cmb2_init_hooks', $this ) includes/cmb2/includes/CMB2_Hookup.php:104

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.