From 4c0222cc6376f174f61113a8cf233f91eda1ff18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20G=C3=A4chter?= Date: Mon, 9 Sep 2024 17:18:22 +0200 Subject: [PATCH] feat: Add `timber/woocommerce/views_folder` filter The theme/woocommerce/views_folder will be deprecated in a next major version --- lib/WooCommerce.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WooCommerce.php b/lib/WooCommerce.php index 4a21c06..e5501f0 100644 --- a/lib/WooCommerce.php +++ b/lib/WooCommerce.php @@ -42,6 +42,7 @@ public static function init() { * @param string $subfolder Subfolder name. */ self::$subfolder = apply_filters( 'theme/woocommerce/views_folder', 'woocommerce' ); + self::$subfolder = apply_filters( 'timber/woocommerce/views_folder', 'woocommerce' ); self::$subfolder = trailingslashit( self::$subfolder ); add_filter( 'wc_get_template', array( $self, 'maybe_render_twig_template' ), 10, 3 );