Twitter_Helpers::textarea_field( string $option_code = 'TEXT', string $label = null, bool $tokens = true, string $type = 'text', string $default = null,  $required = true, string $description = '', string $placeholder = null,  $max_length = null )


Parameters Parameters

$option_code

(string) (Optional)

Default value: 'TEXT'

$label

(string) (Optional)

Default value: null

$tokens

(bool) (Optional)

Default value: true

$type

(string) (Optional)

Default value: 'text'

$default

(string) (Optional)

Default value: null

(bool) (Required)

$description

(string) (Optional)

Default value: ''

$placeholder

(string) (Optional)

Default value: null


Top ↑

Return Return

(mixed)


Source Source

File: src/integrations/twitter/helpers/twitter-helpers.php

	public function textarea_field( $option_code = 'TEXT', $label = null, $tokens = true, $type = 'text', $default = null, $required = true, $description = '', $placeholder = null, $max_length = null ) {

		if ( ! $label ) {
			$label = __( 'Text', 'uncanny-automator' );
		}

		if ( ! $description ) {
			$description = '';
		}

		if ( ! $placeholder ) {
			$placeholder = '';
		}

		$option = array(
			'option_code'      => $option_code,
			'label'            => $label,
			'description'      => $description,
			'placeholder'      => $placeholder,
			'input_type'       => $type,
			'supports_tokens'  => $tokens,
			'required'         => $required,
			'default_value'    => $default,
			'supports_tinymce' => false,
			'max_length'       => $max_length,
		);

		return apply_filters( 'uap_option_text_field', $option );
	}