feat(admin): expose shop/forum CPTs on native WP sidebar (Phase 0–1)

Align admin ops entry with zibll: product/plate/topic menus and taxonomies
show in the WordPress sidebar when shop_s/bbs_s are enabled, gated by
AKSRT_Settings. Add IA map + gap matrix docs for the full native-ops
migration path. SPA ops pages remain until Phase 2–3 native pages ship.
This commit is contained in:
kate522 committed 2026-07-15 01:00:10 +08:00
1 parent 87004ecfe0
commit 50ca5a6593
6 files changed
+388 -60

No files matched your search

@@ -5,7 +5,7 @@ trait AKSRT_Setup_Part_2 {
/**
* 隐藏默认WordPress菜单项目
* 隐藏默认WordPress菜单项目 + zibll 风格运营菜单分隔线
*/
public function hide_default_menus(): void {
// 移除评论默认菜单(已移除该操作以恢复 Comments 菜单)
@@ -13,10 +13,22 @@ trait AKSRT_Setup_Part_2 {
// 移除链接管理(已废弃但仍可能存在)
//remove_menu_page('link-manager.php');
// 移除仪表盘中的不必要组件
remove_meta_box('dashboard_primary', 'dashboard', 'normal');
remove_meta_box('dashboard_quick_press', 'dashboard', 'side');
// Separators around shop (35) and forum (40) — match zibll admin_menu_separator.
global $menu;
if (!is_array($menu)) {
return;
}
if (!isset($menu[34])) {
$menu[34] = ['', 'read', 'separator-aksrt-shop', '', 'wp-menu-separator'];
}
if (!isset($menu[39])) {
$menu[39] = ['', 'read', 'separator-aksrt-forum', '', 'wp-menu-separator'];
}
}
/**