Last active
March 3, 2023 09:50
-
-
Save sarancartrabbit/b21b89940f460aef46432343a027ce4b to your computer and use it in GitHub Desktop.
Discount rules v2: Fix for recurring loop on sale page when enable Adcell Tracking und Remarketing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp', function (){ | |
global $post; | |
if (is_page() && is_object($post) && isset($post->post_content)) { | |
if (has_shortcode($post->post_content, 'awdr_sale_items_list')) { | |
remove_filter( 'woocommerce_after_shop_loop', 'roleWcAdcellTrackingCategoryRetargeting', 10 ); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment