edd_stripe_js( bool $force_load_scripts = false )
Load our javascript
Description Description
The Stripe JS is by default, loaded on every page as suggested by Stripe. This can be overridden by using the Restrict Stripe Assets setting within the admin, and the Stripe Javascript resources will only be loaded when necessary.
Parameters Parameters
- $force_load_scripts
-
(Optional) Allows registering our Javascript files on pages other than is_checkout(). This argument allows the
edd_stripe_js
function to be called directly, outside of the context of checkout, such as the card management or update subscription payment method UIs. Sending in 'true' will ensure that the Javascript resources are enqueued when you need them.Default value: false
Return Return
(void)
Source Source
File: includes/gateways/stripe/includes/scripts.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |