We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2977e19 commit 68b4dc9Copy full SHA for 68b4dc9
woocommerce/class-sv-wc-plugin-compatibility.php
@@ -752,6 +752,23 @@ public static function wc_trim_zeroes( $price ) {
752
}
753
754
755
+ /**
756
+ * Get the template path
757
+ *
758
+ * @since 2.0.2
759
+ * @return string template path
760
+ */
761
+ public static function template_path() {
762
+
763
+ if ( self::is_wc_version_gte_2_1() ) {
764
+ return WC()->template_path();
765
+ } else {
766
+ global $woocommerce;
767
+ return $woocommerce->template_url;
768
+ }
769
770
771
772
/**
773
* Compatibility function to get the version of the currently installed WooCommerce
774
*
0 commit comments