PHP Класс Kirki_Scripts_Tooltips, kirki

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$script_added boolean Whether the script has already been added to the customizer or not.
$tooltip_script string The script generated for ALL fields

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

The class constructor
public __construct ( )

enqueue_script() публичный метод

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

generate_script() публичный статический метод

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.
Результат void

Описание свойств

$script_added публичное статическое свойство

Whether the script has already been added to the customizer or not.
public static bool $script_added
Результат boolean

$tooltip_script публичное статическое свойство

The script generated for ALL fields
public static string $tooltip_script
Результат string