Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Created January 25, 2018 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/bb2434110309f4f0e847819f4381822b to your computer and use it in GitHub Desktop.
Save buiquangduc/bb2434110309f4f0e847819f4381822b to your computer and use it in GitHub Desktop.
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