
Show Orders Shortcode for WooCommerce
v1.2.0con · 2022年5月19日 上架
Show the logged-in customer their WooCommerce orders on any page or post — one shortcode, no settings.
- 正在使用
- 100+
- 评分
- 暂无
- 累计下载
- 2,957
- 最近更新
- 2026年7月16日
需要 WordPress 6.5+已测试到 7.0.9PHP 7.4+
贡献者
截图
Drop [show_wc_orders] into any page, post or widget area that renders shortcodes, and the logged-in customer sees their own orders: order number, date, status, total and a View button — the same table WooCommerce shows under My Account > Orders.
Usage:
[show_wc_orders] shows all of the customer's orders.
[show_wc_orders order_count=10] shows the 10 most recent orders — replace 10 with any number.
That is all. There are no settings.
Details:
- Each visitor only ever sees their own orders. Logged-out visitors see nothing.
- The table is rendered through WooCommerce’s own My Account orders template, so your theme’s styling — and any theme override or column filter you already use for My Account — applies to the shortcode too.
- Works with both classic order storage and High-Performance Order Storage (HPOS).


