Skip to content

Instantly share code, notes, and snippets.

@iMazed
Created January 29, 2017 17:26
Show Gist options
  • Save iMazed/daf69449d85d8ca1311cb318613da030 to your computer and use it in GitHub Desktop.
Save iMazed/daf69449d85d8ca1311cb318613da030 to your computer and use it in GitHub Desktop.
Make Pre-Publish Post Checklist work with Custom Post Types
/**
* 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