function op_fusioncore_shortcodeJSFix() { $checkIfLEPage = get_post_meta(url_to_postid("http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']), '_optimizepress_pagebuilder', true); $pageBuilder = false; if (isset($_GET['page'])) { $pageBuilder = $_GET['page'] == 'optimizepress-page-builder' ? true : false; } $liveEditorAjaxInsert = false; if (isset($_REQUEST['action'])) { $liveEditorAjaxInsert = $_REQUEST['action'] == 'optimizepress-live-editor-parse' ? true : false; } if ($pageBuilder || $liveEditorAjaxInsert) { remove_filter('mce_external_plugins', array(FusionCore_Plugin::get_instance(), 'add_rich_plugins'), 10); } }