Created
July 3, 2013 20:05
-
-
Save wycks/5922326 to your computer and use it in GitHub Desktop.
Adds meta box to posts, pages and custom post types (including default ones ..attachment, menu and revisions).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post_types= get_post_types('','names'); | |
$posts_separated = implode(",", $post_types); | |
$screens = array( 'post', 'page', $posts_separated); | |
foreach ($screens as $screen) { | |
add_meta_box( 'styles', 'hello', 'callback_func', $screen, 'advanced', 'high'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment