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:
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.
-
CMB2300,000+ installs
do_action( 'cmb2_init_hooks', $this )includes/CMB2_Hookup.php:104 -
My Private Site10,000+ installs
do_action( 'cmb2_init_hooks', $this )library/cmb2/includes/CMB2_Hookup.php:104 -
GamiPress10,000+ installs
do_action( 'cmb2_init_hooks', $this )libraries/cmb2/includes/CMB2_Hookup.php:104 -
AutomatorWP6,000+ installs
do_action( 'cmb2_init_hooks', $this )libraries/cmb2/includes/CMB2_Hookup.php:104 -
Cool Flipbox5,000+ installs
do_action( 'cmb2_init_hooks', $this )admin/CMB2/includes/CMB2_Hookup.php:106 -
Podcast Subscribe Buttons4,000+ installs
do_action( 'cmb2_init_hooks', $this )includes/CMB2/cmb2-plugin/includes/CMB2_Hookup.php:104 -
WPBITS Addons For Elementor Page Builder2,000+ installs
do_action( 'cmb2_init_hooks', $this )includes/cmb2/includes/CMB2_Hookup.php:104 -
Dynamic Team Manager900+ installs
do_action( 'cmb2_init_hooks', $this )lib/cmb2/includes/CMB2_Hookup.php:104 -
CRT Addons Builder and Widgets for Elementor300+ installs
do_action( 'cmb2_init_hooks', $this )includes/cmb2/includes/CMB2_Hookup.php:104 -
MediaBlaster200+ installs
do_action( 'cmb2_init_hooks', $this )lib/cmb2/includes/CMB2_Hookup.php:104 -
Dynamic Product Category Grid, Slider for WooCommerce200+ installs
do_action( 'cmb2_init_hooks', $this )lib/cmb2/includes/CMB2_Hookup.php:104 -
CommonsBooking200+ installs
do_action( 'cmb2_init_hooks', $this )vendor-prefixed/cmb2/cmb2/includes/CMB2_Hookup.php:104 -
peLightbox Gallery Slider200+ installs
do_action( 'cmb2_init_hooks', $this )admin/src/CMB2/includes/CMB2_Hookup.php:104 -
Niso Carousel Slider200+ installs
do_action( 'cmb2_init_hooks', $this )admin/src/cmb2/includes/CMB2_hookup.php:104 -
ShortLinks Pro100+ installs
do_action( 'cmb2_init_hooks', $this )libraries/cmb2/includes/CMB2_Hookup.php:104 -
Tour Operator30+ installs
do_action( 'cmb2_init_hooks', $this )plugins/cmb2/includes/CMB2_Hookup.php:104 -
BBForms20+ installs
do_action( 'cmb2_init_hooks', $this )libraries/cmb2/includes/CMB2_Hookup.php:104 -
WhatAvatar10+ installs
do_action( 'cmb2_init_hooks', $this )libraries/cmb2/includes/CMB2_Hookup.php:104 -
Scheidungskostenrechner10+ installs
do_action( 'cmb2_init_hooks', $this )includes/lib/cmb2/includes/CMB2_Hookup.php:104 -
Mega Ad10+ installs
do_action( 'cmb2_init_hooks', $this )inc/cmb2/includes/CMB2_Hookup.php:104 -
cubicFUSION Admin EnhancerFewer than 10 installs
do_action( 'cmb2_init_hooks', $this )inc/cmb2/includes/CMB2_Hookup.php:104 -
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.