• Hi,

    So I noticed something with your plugin, on the file restricted_site_access.php line 120

    public static function restrict_access( $wp ) {
    		remove_action( 'parse_request', array( __CLASS__, 'restrict_access' ), 1 );	// only need it the first time
    ...

    You remove the action hook ‘parse_request’ from within the function hooked, I understand this is to make the function to be called only once. But this breaks any hook to parse_request with a lower priority than yours. Since you are removing your function from the global $wp_filters (remove_action) this makes the iterator on wordpress to stop any calls to functions hooked to the parse_request with a priority above 1.

    I would suggest using a static variable in your class instead of removing the hook. Hope I made myself clear, if you need further details let me know.

    https://www.ads-software.com/plugins/restricted-site-access/

  • The topic ‘Remove Action restrict_access’ is closed to new replies.