Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Disable the PMPro CPT redirect for non-members.
- * The PMPro the_content filters will still run,
- * but might not be adequate to protect some CPTs.
- */
- function my_disable_pmpro_cpt_redirect() {
- remove_action( 'template_redirect', 'pmprocpt_template_redirect' );
- }
- add_action( 'init', 'my_disable_pmpro_cpt_redirect' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement