Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement