Skip to content

cmb2_init

github-actions[bot] edited this page Jun 25, 2026 · 1 revision

Fires when CMB2 is included/loaded

Can be used to add metaboxes if needed on the front-end or WP-API (or the front and backend).

Auto-generated Example

add_action(
   'cmb2_init',
    function() {
        // Your code here.
    }
);

Files

do_action( 'cmb2_init' )

← All Hooks

Clone this wiki locally