Created
January 25, 2018 06:59
-
-
Save buiquangduc/bb2434110309f4f0e847819f4381822b to your computer and use it in GitHub Desktop.
Modify WooCommerce default override template path
This file contains 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
/** | |
* 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