The "textarea" control

Learn how to create controls using Kirki

Back to Controls

Returnsstring

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

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

Example

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