SHARE
TWEET

Untitled

a guest Oct 13th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Enabling custom post type 'tunnelvente' for designing offer pages
  2. function wfocu_allow_cpt_for_offer_design( $args ) {
  3.     $cpt_slugs    = array( 'tunnelvente' ); //Enter your own slug(s) here to white list them
  4.     $allowed_post = $args['post_type'];
  5.  
  6.     $args['post_type'] = array_unique( array_merge( $allowed_post, $cpt_slugs ) );
  7.  
  8.     return $args;
  9. }
  10.  
  11. add_filter( 'wfocu_allow_cpt_for_design', 'wfocu_allow_cpt_for_offer_design', 10, 1 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top