Last active
August 29, 2015 14:01
-
-
Save scofennell/1da42b68b1a768314cf4 to your computer and use it in GitHub Desktop.
WordPress Custom Meta Boxes for Attachments
This file contains 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 | |
/** | |
* Add the Meta Box to attachments | |
*/ | |
function sjf_deh_add_custom_meta_box() { | |
add_meta_box( | |
'custom_meta_box', // id | |
'Art Direction', // title | |
'sjf_deh_show_custom_meta_box', // callback | |
'attachment', // page | |
'normal', // context | |
'high' // priority | |
); | |
} | |
add_action( 'add_meta_boxes', 'sjf_deh_add_custom_meta_box' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment