WooCommerce add script after [woocommerce_update_order_review_fragments] filter load


In Woocommerce, I have custom payment and using [woocommerce_update_order_review_fragments] filter to print payment.

How to add script after [woocommerce_update_order_review_fragments] load?


  • Ash
    • WordPress Hacker

    Hello leoventans

    Is [woocommerce_update_order_review_fragments] a shortcode that you used? If so, which plugin has that shortcode? I have searched within woocommerce but didn’t find it, though I am not so experienced with woocommerce.

    So, if you find the shortcode, we need to find out if there is any hook provided in that shortcode callback. If there is hook, then we can use that to add script for that shotcode.

    So, please let me know what is the source of that hook. Have a nice day!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.