mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +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_menu_page(
|
||||
'本土化',
|
||||
'本土化',
|
||||
'',
|
||||
'wpcy'
|
||||
);
|
||||
|
||||
add_submenu_page(
|
||||
'wpcy',
|
||||
'WP&China Yes!',
|
||||
'系统本土化',
|
||||
add_options_page(
|
||||
'WP-China-Yes',
|
||||
'WP-China-Yes',
|
||||
'manage_options',
|
||||
'wpcy-setting',
|
||||
'wpcy_options_page_html',
|
||||
0
|
||||
'wp_china_yes',
|
||||
'wpcy_options_page_html'
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue