base, Plugin::get_menu_bases(), true ) ) { return; } /** Add code editor for Custom CSS. */ wp_enqueue_code_editor( ['type' => 'application/x-httpd-php'] ); } /** * Generate Status Tab. * * @access public * @return void **/ public function add_settings() { /** Custom CSS Tab. */ $this->add_settings_base( self::TAB_SLUG ); } /** * Render form with all settings fields. * * @since 1.0.0 * @access public * * @return void **/ public function do_settings() { /** No status tab, nothing to do. */ if ( ! $this->is_enabled( self::TAB_SLUG ) ) { return; } /** Render title. */ $this->render_title( self::TAB_SLUG ); /** Render fields. */ $this->do_settings_base( self::TAB_SLUG ); /** Render CSS field. */ $this->render_custom_css(); } /** * Render Custom CSS editor field. * * @since 1.0.0 * @access public * * @return void **/ public function render_custom_css() { ?>