PHP Class Kirki_Field_Editor, kirki

Inheritance: extends Kirki_Field
Afficher le fichier Open project: aristath/kirki

Méthodes publiques

Méthode Description
__construct ( string $config_id = 'global', array $args = [] ) Constructor.
add_editor ( ) Adds the global textarea

Méthodes protégées

Méthode Description
set_sanitize_callback ( ) Sets the $sanitize_callback
set_type ( ) Sets the control type.

Method Details

__construct() public méthode

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() public static méthode

Adds the global textarea
public static add_editor ( )

set_sanitize_callback() protected méthode

Sets the $sanitize_callback
protected set_sanitize_callback ( )

set_type() protected méthode

Sets the control type.
protected set_type ( )