The "editor" control

Learn how to create controls using Kirki

Back to Controls


Can't find what you're looking for? Check the github issues or edit this page to add what's missing.

The editor control renders a rich-text editor in the WordPress Customizer. This editor is the same that WordPress-Core uses in its default widgets, so not all buttons and capabilities are available.

editor control example


Kirki::add_field( 'theme_config_id', [
	'type'        => 'editor',
	'settings'    => 'my_setting',
	'label'       => esc_html__( 'My Editor Control', 'kirki' ),
	'description' => esc_html__( 'This is an editor control.', 'kirki' ),
	'section'     => 'my_section',
	'default'     => '',
] );
Edit this page