Skip to content

Commit

Permalink
Merge pull request alleyinteractive#373 from alleyinteractive/meta_bo…
Browse files Browse the repository at this point in the history
…xes_to_remove_action

Change the action where meta boxes are removed
  • Loading branch information
mboynes committed Jan 4, 2016
2 parents 0a2d0eb + 8dd895e commit d3b94e6
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' ), 100 );
}
}

Expand Down

0 comments on commit d3b94e6

Please sign in to comment.