Skip to content

Commit

Permalink
cmb_init should not be in an else condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Oct 30, 2015
1 parent 78ceace commit c17082f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ function cmb2_bootstrap() {
* In most cases, this should be used to add metaboxes. See example-functions.php
*/
do_action( 'cmb2_admin_init' );

} else {
/**
* Fires when CMB2 is included/loaded
*
* Can be used to add metaboxes if needed on the front-end (or the front and backend).
*/
do_action( 'cmb2_init' );
}

/**
* 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).
*/
do_action( 'cmb2_init' );

/**
* For back-compat. Does the dirty-work of instantiating all the
* CMB2 instances for the cmb2_meta_boxes filter
Expand Down

0 comments on commit c17082f

Please sign in to comment.