mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
feat:将插件菜单移入“设置”栏目中
This commit is contained in:
parent
29e98f3329
commit
fce96a62e9
1 changed files with 5 additions and 14 deletions
|
@ -56,21 +56,12 @@ if (is_admin()) {
|
||||||
* 菜单注册
|
* 菜单注册
|
||||||
*/
|
*/
|
||||||
add_action('admin_menu', function () {
|
add_action('admin_menu', function () {
|
||||||
add_menu_page(
|
add_options_page(
|
||||||
'本土化',
|
'WP-China-Yes',
|
||||||
'本土化',
|
'WP-China-Yes',
|
||||||
'',
|
|
||||||
'wpcy'
|
|
||||||
);
|
|
||||||
|
|
||||||
add_submenu_page(
|
|
||||||
'wpcy',
|
|
||||||
'WP&China Yes!',
|
|
||||||
'系统本土化',
|
|
||||||
'manage_options',
|
'manage_options',
|
||||||
'wpcy-setting',
|
'wp_china_yes',
|
||||||
'wpcy_options_page_html',
|
'wpcy_options_page_html'
|
||||||
0
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue