PHP Class Kirki_Scripts_Tooltips, kirki

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

Méthodes publiques

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

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 Generates the scripts needed for tooltips.

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

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.
Résultat 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
Résultat boolean

$tooltip_script public_oe static_oe property

The script generated for ALL fields
public static string $tooltip_script
Résultat string