• Hi,

    I found conflict with plugins that displays any post content in the admin area – i.e. WP Docs or Admin Help Docs. These plugins uses “the_content” filter, which is used also in Page Restrict.

    In define_public_hooks() there is initiate_process_page() added to “the_content” filter chain, in the admin area too. To properly handle filtering “initiate_process_page()” should have one more line:

    public function initiate_process_page($content)
    {
        $restrict_process = new Section_Blocks();
        if(!is_admin()){
            return $restrict_process->process_page($content);
        }
        return $content;
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with plugins that displays content in the admin area’ is closed to new replies.