feat: remove forum feature (Phase 1)

This commit is contained in:
2026-08-02 20:02:44 +08:00
parent f3e4cdd9cf
commit 2bbd7c01a3
173 changed files with 51 additions and 27360 deletions
@@ -22,9 +22,6 @@ if (!function_exists('aksrt_header_components_page_type_keys')) {
'author',
'single',
'search',
'forum_home',
'forum_plate',
'forum_post',
'page',
];
}
@@ -46,7 +43,6 @@ if (!function_exists('aksrt_header_slide_excluded_page_templates')) {
'templates/pages/page-verify-email.php',
'templates/pages/page-download.php',
'templates/pages/page-download-file.php',
'templates/pages/page-forums.php',
];
}
}
@@ -77,18 +73,6 @@ if (!function_exists('aksrt_header_slide_match_page_type')) {
return is_tax('topics');
}
if ($type === 'forum_home') {
return is_page_template('templates/pages/page-forums.php');
}
if ($type === 'forum_plate') {
return is_singular('aksrt_forum_plate') || $post_type === 'aksrt_forum_plate';
}
if ($type === 'forum_post') {
return is_singular('aksrt_forum_topic') || $post_type === 'aksrt_forum_topic';
}
// Generic WP_Query is_* flags (home/category/tag/author/single/search/page).
$query_flag = 'is_' . $type;
if (empty($wp_query->{$query_flag})) {