function syslab_update_order_review_fragments( $array ) { // make filter magic happen here... $array['.woocommerce-checkout-review-order-table'] = $array['.woocommerce-checkout-review-order-table'].'<script>jQuery(".shipping_method:checked").parent("li").find(".shipping-desc").stop().show();</script>'; return $array; }; // add the filter add_filter( 'woocommerce_update_order_review_fragments', 'syslab_update_order_review_fragments', 10, 1 );