How to restrict Front-End Editor on a page?

From the GitHub-Wiki

The 'front_end_editor_disable'-filter

Use this filter if you want to completely disable the plugin for certain URLs.

Callback arguments:

bool $disable: The current state. Default: false

You can use conditional tags: Conditionals tags return bool true/false, which means, if you want to disable it on a page, simply use is_page(), as it returns true for pages…

Disable FEE on pages, as a (mu)plugin.

<?php
/** Plugin Name: (#73660) Disable Front Page Editor on pages */
function wpse73660_disable_on_author_pages( $disable )
{
    return is_author();
}
add_filter( 'front_end_editor_disable', 'wpse73660_disable_on_author_pages' );

Leave a Comment