Select

Kirki Select Control
new \Kirki\Field\Select(
	[
		'settings'    => 'select_setting',
		'label'       => esc_html__( 'Select Control', 'kirki' ),
		'section'     => 'section_id',
		'default'     => 'option-3',
		'placeholder' => esc_html__( 'Choose an option', 'kirki' ),
		'choices'     => [
			'option-1' => esc_html__( 'Option 1', 'kirki' ),
			'option-2' => esc_html__( 'Option 2', 'kirki' ),
			'option-3' => esc_html__( 'Option 3', 'kirki' ),
			'option-4' => esc_html__( 'Option 4', 'kirki' ),
			'option-5' => esc_html__( 'Option 5', 'kirki' ),
		],
	]
);
Kirki Multiselect
new \Kirki\Field\Select(
	[
		'settings'    => 'select_setting_2',
		'label'       => esc_html__( 'Multiselect', 'kirki' ),
		'description' => esc_html__( 'Multiselect example', 'kirki' ),
		'section'     => 'section_id',
		'default'     => 'option-3',
		'multiple'    => 2,
		'choices'     => [
			'option-1' => esc_html__( 'Option 1', 'kirki' ),
			'option-2' => esc_html__( 'Option 2', 'kirki' ),
			'option-3' => esc_html__( 'Option 3', 'kirki' ),
			'option-4' => esc_html__( 'Option 4', 'kirki' ),
			'option-5' => esc_html__( 'Option 5', 'kirki' ),
		],
	]
);

Was this helpful?