refactor(resource): drop aksrt_resource CPT residue, post+meta only

This commit is contained in:
kate522 committed 2026-07-13 23:47:04 +08:00
1 parent 24c135aeec
commit 1af0e9b753
22 files changed
+362 -986

No files matched your search

@@ -29,13 +29,7 @@ if (!function_exists('aksrt_home_widget_post_types')) {
* @return array<int, string>
*/
function aksrt_home_widget_post_types(): array {
$post_types = ['post'];
if (function_exists('aksrt_resource_post_types')) {
$post_types = array_unique(array_merge($post_types, aksrt_resource_post_types()));
}
return array_values(array_filter(array_map('sanitize_key', $post_types)));
return ['post'];
}
}