textarea

textarea controls allow you to add a simple, multi-line text input.

Example

Kirki::add_field( 'theme_config_id', [
	'type'     => 'textarea',
	'settings' => 'textarea_setting',
	'label'    => esc_html__( 'Textarea Control', 'kirki' ),
	'section'  => 'section_id',
	'default'  => esc_html__( 'This is a default value', 'kirki' ),
	'priority' => 10,
] );

Last updated on: May 10th, 2020

Scroll to Top

Download

Subscribe & be the first to be informed about
new features & updates!