Skip to content

Commit

Permalink
Use appropriate hook for adding metaboxes. Closes #161
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Feb 3, 2015
1 parent 2eef1da commit 53bdb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/CMB2_hookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function admin_hooks() {

$type = $this->cmb->mb_object_type();
if ( 'post' == $type ) {
add_action( 'admin_menu', array( $this, 'add_metaboxes' ) );
add_action( 'add_meta_boxes', array( $this, 'add_metaboxes' ) );
add_action( 'add_attachment', array( $this, 'save_post' ) );
add_action( 'edit_attachment', array( $this, 'save_post' ) );
add_action( 'save_post', array( $this, 'save_post' ), 10, 2 );
Expand Down

0 comments on commit 53bdb22

Please sign in to comment.