Skip to content

Commit

Permalink
Add filter to allow other plugins to interact with out metaboxes outs…
Browse files Browse the repository at this point in the history
…ide of the standard pages
  • Loading branch information
jrfnl committed Jun 29, 2014
1 parent 84b744b commit 8342eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-seo-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function wpseo_admin_init() {
}
}

if ( in_array( $pagenow, array( 'edit.php', 'post.php', 'post-new.php' ) ) ) {
if ( in_array( $pagenow, array( 'edit.php', 'post.php', 'post-new.php' ) ) || apply_filters( 'wpseo_always_load_metaboxes_on_admin', false ) ) {
$GLOBALS['wpseo_metabox'] = new WPSEO_Metabox;
if ( $options['opengraph'] === true ) {
$GLOBALS['wpseo_social'] = new WPSEO_Social_Admin;
Expand Down

0 comments on commit 8342eed

Please sign in to comment.