process_save(); $screen = get_current_screen(); add_action("wu_edit_{$screen->id}_after_normal", array($this, 'display_preview_window')); } /** * Adds the preview window. * * @since 2.0.0 * @return void */ public function display_preview_window() { wu_get_template( 'base/edit/editor-customizer', array( 'preview_iframe_url' => $this->get_preview_url(), 'preview_height' => $this->preview_height, ) ); } /** * Registers the necessary scripts and styles for this admin page. * * @since 2.0.0 * @return void */ public function register_scripts() { parent::register_scripts(); wp_enqueue_script('wu-customizer', wu_get_asset('customizer.js', 'js'), array('jquery', 'wu-vue', 'wu-block-ui')); wp_enqueue_style('wp-color-picker'); wp_enqueue_script('wp-color-picker'); wp_enqueue_media(); } /** * Checkout_Forms have titles. * * @since 2.0.0 * @return boolean */ public function has_title() { return false; } /** * Not needed. * * @since 2.0.0 * @return void */ public function get_object() {} }