<?php // don't load directly if (!defined('ABSPATH')) { die('-1'); } // don't load page if not deme mode. // demo mode just for developers. // default: not defined. if (!defined('WT_DEMO_MODE')) { die('-1'); } // Get frame. yp_frame_output();
function yp_yellow_pencil_editor() { $hook = add_submenu_page(null, 'Yellow Pencil Editor', 'Yellow Pencil Editor', 'edit_theme_options', 'yellow-pencil-editor', function () { }); add_action('load-' . $hook, function () { yp_frame_output(); }); }