Skip to content

Commit

Permalink
Change the action where meta boxes are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Aug 17, 2015
1 parent 054c0ba commit 438f20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/context/class-fieldmanager-context-post.php
Expand Up @@ -71,7 +71,7 @@ public function __construct( $title, $post_types, $context = 'normal', $priority
add_action( 'save_post', array( $this, 'delegate_save_post' ) );
// Check if any meta boxes need to be removed
if ( $this->fm && !empty( $this->fm->meta_boxes_to_remove ) ) {
add_action( 'admin_init', array( $this, 'remove_meta_boxes' ) );
add_action( 'add_meta_boxes', array( $this, 'remove_meta_boxes' ) );
}
}

Expand Down

0 comments on commit 438f20c

Please sign in to comment.