PHP Class Kirki_Scripts_Icons, kirki

Exibir arquivo Open project: aristath/kirki Class Usage Examples

Public Properties

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

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 This works on a per-field basis.

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

Once created, the script is added to the $icons_script property.
public static generate_script ( array $args = [] ) : void
$args array The field definition.
return void

Property Details

$icons_script public_oe static_oe property

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

$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