WC_Stripe_Frontend_Scripts
in package
Handles script enqueuement and output of params needed by the plugin.
Tags
Table of Contents
Properties
- $assets_api : mixed
- $enqueued_scripts : mixed
- $global_scripts : mixed
- $localized_data : mixed
- $localized_scripts : mixed
- $prefix : mixed
- $registered_scripts : mixed
- $scripts_registered : mixed
Methods
- __construct() : mixed
- assets_url() : mixed
- enqueue_checkout_scripts() : mixed
- enqueue_local_payment_scripts() : mixed
- enqueue_script() : mixed
- enqueue_scripts() : mixed
- Enqueue all frontend scripts needed by the plugin
- get_handle() : mixed
- get_min() : mixed
- initialize() : mixed
- localize_script() : mixed
- localize_scripts() : mixed
- print_footer_scripts() : mixed
- register_script() : mixed
- register_scripts() : mixed
- get_page_id() : mixed
Properties
$assets_api
public
mixed
$assets_api
$enqueued_scripts
public
mixed
$enqueued_scripts
= array()
$global_scripts
public
mixed
$global_scripts
= array('external' => 'https://js.stripe.com/v3/', 'gpay' => 'https://pay.google.com/gp/p/js/pay.js')
$localized_data
public
mixed
$localized_data
= array()
$localized_scripts
public
mixed
$localized_scripts
= array()
$prefix
public
mixed
$prefix
= 'wc-stripe-'
$registered_scripts
public
mixed
$registered_scripts
= array()
$scripts_registered
private
mixed
$scripts_registered
= \false
Methods
__construct()
public
__construct(AssetsApi $assets_api) : mixed
Parameters
- $assets_api : AssetsApi
assets_url()
public
assets_url([string $uri = '' ]) : mixed
Parameters
- $uri : string = ''
enqueue_checkout_scripts()
public
enqueue_checkout_scripts() : mixed
enqueue_local_payment_scripts()
public
enqueue_local_payment_scripts() : mixed
enqueue_script()
public
enqueue_script(mixed $handle[, mixed $src = '' ][, mixed $deps = array() ][, mixed $version = '' ][, mixed $footer = true ]) : mixed
Parameters
- $handle : mixed
- $src : mixed = ''
- $deps : mixed = array()
- $version : mixed = ''
- $footer : mixed = true
enqueue_scripts()
Enqueue all frontend scripts needed by the plugin
public
enqueue_scripts() : mixed
get_handle()
public
get_handle(mixed $handle) : mixed
Parameters
- $handle : mixed
get_min()
public
get_min() : mixed
initialize()
public
initialize() : mixed
localize_script()
public
localize_script(string $handle, array<string|int, mixed> $data[, string $object_name = '' ]) : mixed
Parameters
- $handle : string
- $data : array<string|int, mixed>
- $object_name : string = ''
localize_scripts()
public
localize_scripts() : mixed
print_footer_scripts()
public
print_footer_scripts() : mixed
register_script()
public
register_script(mixed $handle, mixed $src[, mixed $deps = array() ][, mixed $version = '' ][, mixed $footer = true ]) : mixed
Parameters
- $handle : mixed
- $src : mixed
- $deps : mixed = array()
- $version : mixed = ''
- $footer : mixed = true
register_scripts()
protected
register_scripts() : mixed
get_page_id()
private
get_page_id() : mixed