automator_add_textarea_field( $field_code,  $label, string $default = '', bool $required = true )


Parameters Parameters

$field_code

(Required)

$label

(Required)

$default

(string) (Optional)

Default value: ''

$required

(bool) (Optional)

Default value: true


Top ↑

Return Return

(mixed|void)


Source Source

File: src/core/lib/helper-functions/automator-helper-functions.php

function automator_add_textarea_field( $field_code, $label, string $default = '', bool $required = true ) {
	$options = array(
		'option_code' => $field_code,
		'input_type'  => 'textarea',
		'label'       => $label,
		'default'     => $default,
		'required'    => $required,
	);

	return Automator()->helpers->recipe->field->text( $options );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0 Introduced.