general_post_settings(); } public function get_defaults() { return [ 'custom_css' => '', 'custom_js' => '' ]; } /** * Post Status Columns */ public function custom_css_js_fields(&$fields) { $fields[] = array( 'type' => 'subheading', 'content' => Utils::adminfiy_help_urls( __('Custom CSS/JS Settings', WP_ADMINIFY_TD), 'https://wpadminify.com/kb/wp-adminify-options-panel/#custom-css-js', 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8', 'https://www.facebook.com/groups/jeweltheme', 'https://wpadminify.com/support/' ) ); $fields[] = array( 'id' => 'custom_css', 'type' => 'code_editor', 'title' => __('Custom CSS', WP_ADMINIFY_TD), 'desc' => __('Write your own Custom CSS for WordPress Admin here', WP_ADMINIFY_TD), 'settings' => array( 'theme' => 'mbo', 'mode' => 'css', ), 'default' => ' /* Your Custom CSS Code here */' ); $fields[] = array( 'id' => 'custom_js', 'type' => 'code_editor', 'title' => __('Custom JavaScript', WP_ADMINIFY_TD), 'desc' => 'Write your own Custom Script for WordPress Admin here', 'settings' => array( 'theme' => 'dracula', 'mode' => 'javascript', ) ); } public function general_post_settings() { if (!class_exists('ADMINIFY')) { return; } $fields = []; $this->custom_css_js_fields($fields); // Custom CSS Settings \ADMINIFY::createSection($this->prefix, array( 'title' => __('Custom CSS/JS', WP_ADMINIFY_TD), 'icon' => 'fas fa-code', 'fields' => $fields )); } }