What Does the Feature Do?
The default WooCommerce admin gives you order row actions for viewing, editing, and so on, but no quick way to see the customer-facing order confirmation. The Enable Thank You Page Link in Orders feature adds two admin shortcuts:
- An action button on each row of the orders list
- An entry in the edit-order actions dropdown
Both open the order’s thank you (order received) page, so you can see exactly what the customer sees after checkout. When the order belongs to a registered customer, the link is built to let an admin with edit_shop_orders capability preview the page in the customer’s context.
When to Enable It
Enable it when you need to see the customer-facing order confirmation regularly:
- Support staff checking what a customer saw at checkout
- Confirming an order resolved correctly after payment
- Reviewing the order details and download links on the public page
- Onboarding staff to the customer’s checkout experience
Keep it off if you never need the customer-facing page from the order screen.
How to View the WooCommerce Thank You Page from the Order Admin
- Step 1
Enable the Feature
- In WordPress admin, open Classic Monks > WooCommerce.
- Open the Orders settings area.
- Toggle on Enable Thank You Page Link in Orders.

- Step 2
Save and Open an Order
Click Save Changes, then go to WooCommerce > Orders.
- Step 3
Use the Row Action
Hover over any order row and click the Thank You Page action. The order received page opens in a new tab.
- Step 4
Use the Edit-Order Dropdown
Open an order in the editor, use its Order actions dropdown, select Thank You Page, and apply it. The page opens for that order.
The preview runs in the customer’s context for registered users, so you see the page the way the buyer would.
Configuration Options
| Option | Default |
|---|---|
| Enable Thank You Page Link in Orders | Off |
There are no nested options. The feature’s behavior is determined by the capability check and the excluded-status list.
| Applied rule | Behavior |
|---|---|
| Capability | Only users who can edit shop orders see working preview links. |
| Excluded statuses | Cancelled, failed, and trashed orders do not show the thank you link. |
What Gets Affected
- The orders list: a Thank You Page row action is added
- The order editor: a Thank You Page action appears in the Order actions dropdown
- The preview: for registered customers, an admin can view the order received page in the customer’s context
What Does NOT Get Affected
- The customer-facing checkout and order received pages: these are unchanged
- Regular order row actions: view, edit, and the default actions stay in place
- Orders in cancelled, failed, or trashed status: no thank you link is added for them
- Non-admins: the customer preview logic only engages for users who can edit shop orders
Advanced Options (Developers)
The feature registers its hooks in functions/woocommerce/thank-you-page-link.php, gated on the Enable Thank You Page Link in Orders option:
add_filter( 'woocommerce_admin_order_actions', 'cm_add_thank_you_page_action_button', 10, 2 );
add_filter( 'woocommerce_order_actions', 'cm_add_thank_you_order_action_dropdown', 9999, 2 );
add_action( 'woocommerce_order_action_view_thankyou', 'cm_redirect_to_thank_you_from_order_action' );
add_filter( 'determine_current_user', 'cm_admin_becomes_customer_for_thank_you_page', 20 );
add_filter( 'woocommerce_order_received_verify_known_shoppers', '__return_false' );
woocommerce_admin_order_actionsadds the row-action button, andwoocommerce_order_actions(priority 9999) adds the dropdown entry. Both exclude orders in the cancelled, failed, or trash status.woocommerce_order_action_view_thankyouhandles the dropdown selection and redirects to the order received page.determine_current_userdrives the customer-context preview: when anadmparameter matches the order’s customer and the user can edit shop orders, it temporarily switches the running user so the page renders as the customer sees it. This runs only on frontend order-received requests.woocommerce_order_received_verify_known_shoppersreturns false so the preview does not get blocked by WooCommerce’s shopper-verification check.- The built URL uses the
order-receivedendpoint plus the order key, and appendsadm,t, andoidfor the customer preview. Filterscm_thank_you_page_url,cm_customer_view_thank_you_url, andcm_thank_you_page_excluded_statusesallow customization. The excluded-statuses filter defaults toarray('cancelled', 'failed', 'trash').
Frequently asked questions
Where do the thank you links appear?
They appear as a row action on each order in the orders list and as a Thank You Page action in the edit-order actions dropdown.
Can I see the page exactly as the customer does?
For registered customers, yes. When the order has a customer ID and you hold the edit_shop_orders capability, the preview temporarily renders the order received page in that customer’s context. Guest orders render under the current user.
Do cancelled or failed orders get a link?
No. By default, cancelled, failed, and trashed orders are excluded, so no thank you link is added for them.
Does this affect what customers see?
No. The feature only adds admin shortcuts. The public order received page and the checkout flow are unchanged.
Can any staff member use these links?
The preview context only works for users who can edit shop orders. Other admin roles can still reach the page if WooCommerce lets them, but the customer-context preview requires the capability.
Troubleshooting
4 problems and how to fix each one.
The thank you link is not showing
Cause: The feature toggle is off, or the order is in an excluded status (cancelled, failed, or trashed).
Fix: Confirm Enable Thank You Page Link in Orders is on. Open an order in a non-excluded status, such as processing or completed.
The link opens the wrong page or a 404
Cause: The order received URL could not be resolved, usually from an order key or permalink issue.
Fix: Verify the checkout and order received pages exist under WooCommerce > Settings > Advanced > Page setup and that permalinks are set. Test the order’s order received URL directly.
The preview is not showing customer data
Cause: The viewer does not have edit_shop_orders capability, or the order belongs to a guest with no customer ID to switch to.
Fix: Log in as a user who can edit shop orders. For guest orders, the customer-context switch cannot apply, so the preview shows under the current user.
The link is showing for orders I do not want
Cause: By default the link is hidden only for cancelled, failed, and trashed orders.
Fix: Narrow the behavior with the cm_thank_you_page_excluded_statuses filter to add more statuses to the exclusion list. There is no settings-field control for this; it is a code-level filter.