Embed Snippet on Your Site
WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions.
In this example, we remove all plugin scripts & styles unless the current page slug is "payment-page", "donate", or "subscribe".
NOT RECOMMENDED: Please note that this also prevents Stripe.js from loading on the non-payment form pages. Stripe highly recommends against this. To best leverage Stripe’s advanced fraud functionality, include this script on every page of your site, not just the checkout page. This allows Stripe to detect anomalous behavior that may be indicative of fraud as customers browse your website.
https://stripe.com/docs/stripe-js/reference#including-stripejs
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments