Frontend::override_order_received_template( string $template, string $template_name, array $args, string $template_path, string $default_path )
Override the default WC Order Received Template (if conditions are met)
Parameters
- $template
-
(Required) full file path.
- $template_name
-
(Required) current template name.
- $args
-
(Required) the args array contains order instance.
- $template_path
-
(Required) template path.
- $default_path
-
(Required) default path.
Return
(string) the output of the custom thank you page or default WC Order Received page.
Source
File: includes/modules/woocommerce_booster/custom_thank_you/frontend.php
Expand full source code Collapse full source code View on Github