Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save xlplugins/435aada768775308d51f156eeecec25c to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/435aada768775308d51f156eeecec25c to your computer and use it in GitHub Desktop.
Theme order confirmation template overrides fix by fk
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