Advertisement
Pen9

WordPress: Add CPT to Premise

Nov 26th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. add_action('init', 'add_premise_member_support');
  2. function add_premise_member_support( $post_type ) {
  3. $post_type= 'CPT name'; //add the name of your CPT here.
  4. add_post_type_support( $post_type, 'premise-member-access' );
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement