daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. define( 'TORETDIR', plugin_dir_path( __FILE__ ) );
  3.  
  4. add_filter( 'woocommerce_locate_template', 'toret_locate_template', 10, 3 );
  5. function toret_locate_template( $template, $template_name, $template_path ) {
  6.    
  7.     if ( $template_name == 'price.php' ){
  8.         $template = TORETDIR . 'price.php';
  9.     }
  10.     return $template;
  11.    
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top