feat(orders): full-chain My Orders for all product types

Unify front-end order center across shop, content, VIP, recharge,
points, and plate-follow with type filters, stats, and type-aware
cards; keep shop-only fulfillment actions; ensure 权益与消费 entry URL.
This commit is contained in:
kate522 committed 2026-07-25 13:33:43 +08:00
1 parent 85ade059a2
commit 3baa8573c9
8 files changed
+841 -152

No files matched your search

+6 -2
View File
@@ -74,12 +74,16 @@ endif;
if (!function_exists('aksrt_get_orders_page_url')) :
/**
* 订单中心页面 URL(模板 templates/pages/page-orders.php)。
* 未指派页面时返回空串,调用方应隐藏入口。
* 未指派页面时回退 /orders/(与 Scripts 路由一致),保证「权益与消费」入口可用。
*/
function aksrt_get_orders_page_url(): string {
return function_exists('aksrt_get_page_url_by_template')
$url = function_exists('aksrt_get_page_url_by_template')
? aksrt_get_page_url_by_template('templates/pages/page-orders.php')
: '';
if ($url !== '') {
return $url;
}
return home_url('/orders/');
}
endif;