[BUG] Woocommerce PHP Hooks Not Working (After Applying Patch ID: 488670)
-
Hi,
i use the custom layout for single products and i think that on last patches something is broken (probably the patch ID: 488670 did it)
i was use some WooCommerce php hooks to display some additional content on different places on single product page, some of them are conditionally if the conditions meet. I use the woocommerce conditional content plugin (https://woocommerce.com/products/woocommerce-conditional-content/) to create contents, so everything was working just fine before some days, then i applied the latest patches and now the hooks that i want to display not appear on product page anymore.
Take a look on video that i created for you and it shows that after the patch applied the problem begins
Hello,
Please, send us your admin and FTP access so we can troubleshoot this on your website.
Kind Regards
Here you go,
its a staging website, so any changes doesn’t affect live website
We need both admin and FTP access.
Kind Regards
Hello,
WordPress password seems to be wrong and we can’t enter your dashboard.
Kind Regards
Please try again, i double check it and i can login successfully
We have fixed this issue on your website. Please, check how it works now.
Yep, it looks ok.
But i want to pull the fix also on my live website, can you post the change here? so i can apply the same fix till you release a patch or update
You need to edit this file inc/modules/layouts/wpb/shortcodes/woocommerce/hook.php
and replace the following line
if ( ! did_action( $settings['hook'] ) ) {
with this one
if ( ! has_action( $settings['hook'] ) ) {
Kind Regards
Thank you! the code its working just fine
Hello,
Great! In case you need any additional help, I’d be more than happy to assist you.
Wish you all the best.
Kind Regards
The topic ‘[BUG] Woocommerce PHP Hooks Not Working (After Applying Patch ID: 488670)’ is closed to new replies.