feat:将插件菜单移入“设置”栏目中

This commit is contained in:
sunxiyuan 2020-08-15 15:31:28 +08:00
parent 29e98f3329
commit fce96a62e9

View file

@ -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'
);
});