Instantly share code, notes, and snippets.

What would you like to do?
Modify WooCommerce default override template path
* Override folder that WooCommerce will check if there are any override WooCommerce's template files.
* WordPress initially detects theme in themes/sage/resources follow Sage's config.
* @see resources/functions.php:65
add_filter( 'woocommerce_template_path', function($template_path) {
$template_path = 'views/woocommerce/';
return $template_path;
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment