-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.php
More file actions
47 lines (45 loc) · 2.54 KB
/
Copy pathconfig-sample.php
File metadata and controls
47 lines (45 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
|| --------------------------------------------------------------------------------------------
|| Admin Panel Config
|| --------------------------------------------------------------------------------------------
||
|| @package Dilaz Panel Options
|| @subpackage Config
|| @since Dilaz Panel 2.4.1
|| @author Rodgath, https://github.com/Rodgath
|| @copyright Copyright (C) 2017, Rodgath LTD
|| @link https://github.com/Rodgath/Dilaz-Panel
|| @License GPL-2.0+
|| @License URI http://www.gnu.org/licenses/gpl-2.0.txt
||
|| NOTE: Rename this file from "config-sample.php" to "config.php". If you
|| don't rename it, all your config parameters will be overwritten
|| when updating Dilaz Panel Options.
||
*/
defined('ABSPATH') || exit;
# Option parameters
$parameters = array(
'option_name' => 'dilaz_options', # must be unique. Used to save settings.
'option_prefix' => 'dilaz_panel', # must be unique. Not used to save settings.
'use_type' => 'theme', # 'theme' if used within a theme OR 'plugin' if used within a plugin
'default_options' => true, # whether to load default options. Always set to "false" on a live site.
'custom_options' => true, # whether to load custom options. Always set to "false" on a live site.
'page_slug' => 'dilaz_panel', # should be unique.
'page_title' => __('Dilaz Panel', 'dilaz-panel'), # The text to be displayed in the title tags of the page when the menu is selected.
'menu_title' => __('Dilaz Panel', 'dilaz-panel'), # The text to be used for the menu.
'options_view_cap' => array('manage_options'), # The capabilities required for this menu to be displayed to the user.
'options_save_cap' => array('manage_options'), # The capabilities required for the user to save the options for this panel.
'menu_icon' => '', # dashicon menu icon.
'menu_position' => null, # position in menu order. Works with top-level menu only.
'parent_slug' => '', # The slug name for the parent menu (or the file name of a standard WordPress admin page).
'admin_bar_menu' => true, # 'true' to show panel in admin bar menu.
'import_export' => true, # 'true' to enable import/export field.
'log_title' => __('Changelog', 'dilaz-panel'),
'log_url' => '#', # leave empty to disable.
'doc_title' => __('Documentation', 'dilaz-panel'),
'doc_url' => '#', # leave empty to disable.
'support_title' => __('Support', 'dilaz-panel'),
'support_url' => '#', # leave empty to disable.
);