SHARE
TWEET

Untitled

a guest Oct 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Disable the PMPro CPT redirect for non-members.
  3.  * The PMPro the_content filters will still run,
  4.  * but might not be adequate to protect some CPTs.
  5.  */
  6. function my_disable_pmpro_cpt_redirect() {
  7.     remove_action( 'template_redirect', 'pmprocpt_template_redirect' );
  8. }
  9. add_action( 'init', 'my_disable_pmpro_cpt_redirect' );
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top