PHP Class Kirki_Scripts_Icons, kirki

Afficher le fichier Open project: aristath/kirki Class Usage Examples

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode 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 méthode

The class constructor
public __construct ( )

enqueue_script() public méthode

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

generate_script() public static méthode

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

Property Details

$icons_script public_oe static_oe property

The script generated for ALL fields
public static string $icons_script
Résultat 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
Résultat boolean