Pen9

WordPress: Add CPT to Premise

Nov 26th, 2013
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data