Api
in package
Table of Contents
Properties
- $commons_script_name : mixed
- $commons_styles_name : mixed
- $asset_registry : mixed
- $config : mixed
- $styles : mixed
Methods
- __construct() : mixed
- Api constructor.
- enqueue_style() : mixed
- get_asset_url() : string
- get_path() : mixed
- register_external_script() : mixed
- register_script() : mixed
- Registers the provided script.
- init() : mixed
Properties
$commons_script_name
protected
mixed
$commons_script_name
= 'wc-stripe-blocks-commons'
$commons_styles_name
protected
mixed
$commons_styles_name
= 'wc-stripe-block-style'
$asset_registry
private
mixed
$asset_registry
$config
private
mixed
$config
$styles
private
mixed
$styles
= array()
Methods
__construct()
Api constructor.
public
__construct(Config $config) : mixed
Parameters
- $config : Config
enqueue_style()
public
enqueue_style() : mixed
get_asset_url()
public
get_asset_url([string $relative_path = '' ]) : string
Parameters
- $relative_path : string = ''
Return values
stringget_path()
public
get_path([mixed $relative_path = '' ]) : mixed
Parameters
- $relative_path : mixed = ''
register_external_script()
public
register_external_script(mixed $handle, mixed $src, mixed $deps, mixed $version[, mixed $footer = true ]) : mixed
Parameters
- $handle : mixed
- $src : mixed
- $deps : mixed
- $version : mixed
- $footer : mixed = true
register_script()
Registers the provided script.
public
register_script(string $handle, string $relative_path[, array<string|int, mixed> $deps = array() ]) : mixed
Parameters
- $handle : string
- $relative_path : string
- $deps : array<string|int, mixed> = array()
init()
private
init() : mixed