reworking and reordering for presse admin page
This commit is contained in:
parent
ff1ca2e629
commit
d6c8899396
|
|
@ -12,14 +12,20 @@ function register_theme_settings_option_page()
|
||||||
if (function_exists('acf_add_options_page')) {
|
if (function_exists('acf_add_options_page')) {
|
||||||
|
|
||||||
// Register options page.
|
// Register options page.
|
||||||
$option_page = acf_add_options_page(array(
|
$homegrade_option_page = acf_add_options_page(array(
|
||||||
'page_title' => __('Paramètres du site', 'homegrade-theme__texte-backoffice'),
|
'page_title' => __('Paramètres & Outils', 'homegrade-theme__texte-backoffice'),
|
||||||
'menu_title' => __('Paramètres du site', 'homegrade-theme__texte-backoffice'),
|
'menu_title' => __('Paramètres & Outils', 'homegrade-theme__texte-backoffice'),
|
||||||
'menu_slug' => 'theme-general-settings',
|
'menu_slug' => 'theme-general-settings',
|
||||||
'capability' => 'activate_plugins',
|
'capability' => 'activate_plugins',
|
||||||
'redirect' => false,
|
'redirect' => false,
|
||||||
'position' => 20,
|
'position' => 20,
|
||||||
));
|
));
|
||||||
|
// Add sub page.
|
||||||
|
$press_kit_admin_page = acf_add_options_sub_page(array(
|
||||||
|
'page_title' => __('Presse'),
|
||||||
|
'menu_title' => __('Presse'),
|
||||||
|
'parent_slug' => $homegrade_option_page['menu_slug'],
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add_options_page( 'MyPlugin Options', 'MyPlugin Options', 'activate_plugins', 'myplugin-options', 'myplugin_options' );
|
// add_options_page( 'MyPlugin Options', 'MyPlugin Options', 'activate_plugins', 'myplugin-options', 'myplugin_options' );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user