public

Update Infographic Embedder plugin to support pages

  • Download Gist
infographic-embedder.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
function infographic_embedder_add_post_meta_boxes() {
add_meta_box(
'infographic_embedder-post-class',
__( 'Infographic Embed', 'example' ),
'infographic_embedder_post_class_meta_box',
'post',
'side',
'default'
);
add_meta_box(
'infographic_embedder-post-class',
__( 'Infographic Embed', 'example' ),
'infographic_embedder_post_class_meta_box',
'page',
'side',
'default'
);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.