Mobile App Refresh Campaign [Banner] 2024

Product Icon

PayPal Braintree

by  Woo
Accept PayPal, credit cards and debit cards with a single payment gateway solution — PayPal Powered by Braintree.

Easy Way to Dequeue Scripts and Styles

SV_WC_Payment_Gateway->enqueue_payment_form_assets() enqueues scripts and styles to include a hard-coded $versioned_handle in the handle name (in class-sv-wc-payment-gateway.php). Thus, it seems unstable to write something like:


It would be great to add a filter to allow the function return before the scripts are enqueued. Like how you have here, but allowing developers to set their own conditionals:

if ( is_account_page() && ! is_add_payment_method_page() ) { return; }

Alternately, exposing the fully formed handled name as a public variable seems like it could be helpful as well.



Current Status


Last updated: November 3, 2023


Log in to comment on this feature request.