Is it possible to add a new Meta_Box to an post-format?
The add_meta_box-Codex shows, that it’s declared in the Parameters. Therefore the $post_type parameter in the add_meta_box function let define the context in which the meta_box is displayed.
(string) (required) The type of Write screen on which to show the edit screen section (‘post’, ‘page’, ‘dashboard’, ‘link’, ‘attachment’ or ‘custom_post_type’ where custom_post_type is the custom post type slug)
Default: None
But if I define the video post-format as the context of the meta_box, nothings happens. It only works for post, pages and some custom-post-type slugs…
/**
* Register meta_box video post format.
*
*
*/
function meta_box_video() {
add_meta_box(
'video_meta_box',
'Video',
'display_video_meta_box',
'video',
'normal',
'high'
);
add_action('admin_init', 'meta_box_video');