Class CMB2_JS
Handles the dependencies and enqueueing of the CMB2 JS scripts
Direct known subclasses
Package: CMB2
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Link: https://cmb2.io
Located at includes/CMB2_JS.php
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Link: https://cmb2.io
Located at includes/CMB2_JS.php
Methods summary
public static
|
#
add_dependencies( array|string $dependencies )
Add a dependency to the array of CMB2 JS dependencies |
public static
|
|
public static
|
|
public static
|
#
register_colorpicker_alpha( boolean $enqueue = false )
Register or enqueue the wp-color-picker-alpha script. |
public static
|
#
register_datetimepicker( boolean $enqueue = false )
Register or enqueue the jquery-ui-datetimepicker script. |
protected static
|
|
protected static
|
Properties summary
protected static
string
|
$handle
The CMB2 JS handle |
#
'cmb2-scripts'
|
protected static
string
|
$js_variable
The CMB2 JS variable name |
#
'cmb2_l10'
|
protected static
array
|
$dependencies
Array of CMB2 JS dependencies |
#
array(
'jquery' => 'jquery',
)
|
protected static
array
|
$fields
Array of CMB2 fields model data for JS. |
#
array()
|