Created
January 29, 2017 17:26
-
-
Save iMazed/daf69449d85d8ca1311cb318613da030 to your computer and use it in GitHub Desktop.
Make Pre-Publish Post Checklist work with Custom Post Types
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
/** | |
* Make Pre-Publish Post Checklist work with Custom Post Types | |
* Add to your functions.php file | |
*/ | |
function my_add_meta_boxes() { | |
add_meta_box( | |
'pc-meta-box', | |
'Pre-Publish Post Checklist', | |
'pc_create_meta_box_callback', | |
'YOUR_CPT', /* Change this your Custom Post Type ID */ | |
'side' ); | |
} | |
add_action( 'add_meta_boxes', 'my_add_meta_boxes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment