wordpress/wp-content/plugins/kt-tinymce-color-grid/index.php
/**
         * Add settings page to WordPress' admin menu
         * @since 1.3
         */
Add settings page to WordPress' admin menu
@since 1.3
Add settings page to WordPress ' admin menu @since 1 . 3
public function add_settings_page() {
            $name = __('Central Color Palette', 'kt-tinymce-color-grid');
            $parent = $this->is_active_for_network ? 'settings.php' : 'options-general.php';
            $this->capability = $this->is_active_for_network ? 'manage_network_options' : 'manage_options';
            $hook = add_submenu_page($parent, $name, $name, $this->capability, self::KEY, array($this, 'print_settings_page'));
            add_action("load-$hook", array($this, 'init_settings_page'));
        }
public function add_settings_page ( ) { $ name = __ ( 'Central Color Palette' , 'kt-tinymce-color-grid' ) ; $ parent = $ this -> is_active_for_network ? 'settings.php' : 'options-general.php' ; $ this -> capability = $ this -> is_active_for_network ? 'manage_network_options' : 'manage_options' ; $ hook = add_submenu_page ( $ parent , $ name , $ name , $ this -> capability , self :: KEY , array ( $ this , 'print_settings_page' ) ) ; add_action ( " load- $ hook " , array ( $ this , 'init_settings_page' ) ) ; }
Add settings page to WordPress' admin menu
 @since 1.3
Add settings page to WordPress ' admin menu @since 1 . 3