How to remove the single's doc redirection
-
Hi Boone, great job with the plugin, thanks ??
I’m trying to remove the following hook because I need to allow the access to some users depending some usermeta value. But I can’t get to remove the action:
remove_action( 'template_redirect', array( $this, 'protect_doc_access' ) );
The var $this should have the same values than when it was defined with add_action, but if I try to define $this I get a white screen.
Using remove_all_actions I get it, but I can’t use it because I have other redirections that can not be removed.
Any ideas how to get it?
Thanks in advance ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to remove the single's doc redirection’ is closed to new replies.