Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define( 'TORETDIR', plugin_dir_path( __FILE__ ) );
- add_filter( 'woocommerce_locate_template', 'toret_locate_template', 10, 3 );
- function toret_locate_template( $template, $template_name, $template_path ) {
- if ( $template_name == 'price.php' ){
- $template = TORETDIR . 'price.php';
- }
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement