PHP Класс Kirki_Field_Editor, kirki

Наследование: extends Kirki_Field
Показать файл Открыть проект

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

Метод Описание
__construct ( string $config_id = 'global', array $args = [] ) Constructor.
add_editor ( ) Adds the global textarea

Защищенные методы

Метод Описание
set_sanitize_callback ( ) Sets the $sanitize_callback
set_type ( ) Sets the control type.

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

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

Since editor fields only work properly if there's a single tinyMCE instance We'll be adding a global editor using the add_editor method.
public __construct ( string $config_id = 'global', array $args = [] )
$config_id string The ID of the config we want to use. Defaults to "global". Configs are handled by the Kirki_Config class.
$args array The arguments of the field.

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

Adds the global textarea
public static add_editor ( )

set_sanitize_callback() защищенный Метод

Sets the $sanitize_callback
protected set_sanitize_callback ( )

set_type() защищенный Метод

Sets the control type.
protected set_type ( )