PHP Class Kirki_Scripts_Tooltips, kirki

ファイルを表示 Open project: aristath/kirki Class Usage Examples

Public Properties

Property Type Description
$script_added boolean Whether the script has already been added to the customizer or not.
$tooltip_script string The script generated for ALL fields

Public Methods

Method Description
__construct ( ) The class constructor
enqueue_script ( ) Format the script in a way that will be compatible with WordPress.
generate_script ( array $args = [] ) : void Generates the scripts needed for tooltips.

Method Details

__construct() public method

The class constructor
public __construct ( )

enqueue_script() public method

Format the script in a way that will be compatible with WordPress.
public enqueue_script ( )

generate_script() public static method

This works on a per-field basis. Once created, the script is added to the $tooltip_script property.
public static generate_script ( array $args = [] ) : void
$args array The field definition.
return void

Property Details

$script_added public_oe static_oe property

Whether the script has already been added to the customizer or not.
public static bool $script_added
return boolean

$tooltip_script public_oe static_oe property

The script generated for ALL fields
public static string $tooltip_script
return string