1const { registerCheckoutFilters } = window.wc.blocksCheckout; 2 3const modifyShowApplyCouponNotice = ( defaultValue, extensions, args ) => { 4 5 if (general_settings['plgfqdp_coupon_settings'] == 'plgfqdp_aply_nly_cpn') { 6 window.location.reload(); 7 return false; 8 } 9 10 return defaultValue; 11}; 12 13const modifyShowRemoveCouponNotice = ( defaultValue, extensions, args ) => { 14 if (general_settings['plgfqdp_coupon_settings'] == 'plgfqdp_aply_nly_cpn') { 15 window.location.reload(); 16 return false; 17 } 18 return defaultValue; 19}; 20 21registerCheckoutFilters( 'plugify_qdp_discount_data', { 22 showApplyCouponNotice: modifyShowApplyCouponNotice, 23 showRemoveCouponNotice: modifyShowRemoveCouponNotice, 24});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.