PHP 클래스 Kirki_Field_Editor, kirki

상속: extends Kirki_Field
파일 보기 프로젝트 열기: aristath/kirki

공개 메소드들

메소드 설명
__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 ( )