Created
May 20, 2026 12:30
-
-
Save xlplugins/435aada768775308d51f156eeecec25c to your computer and use it in GitHub Desktop.
Theme order confirmation template overrides fix by fk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'page_template_hierarchy', function( $templates ) { | |
| if ( isset( $_GET['wfty_source'] ) || isset( $_GET['wfocu-si'] ) || isset( $_GET['wfacp_is_checkout_override'] ) ) { | |
| return array_values( array_diff( $templates, array( 'order-confirmation' ) ) ); | |
| } | |
| return $templates; | |
| }, 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment