← Back
Editing: textarea.html.php
<?php if (!defined('ABSPATH')) { exit; } // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- template variables; this file is included inside a function, so they are not globals. /** @since 4.19.1 Escape output. */ /** @var Give\Framework\FieldsAPI\Textarea $field */ ?> <?php /** @var string $fieldIdAttribute */ ?> <textarea name="<?php echo esc_attr($field->getName()); ?>" id="<?php echo esc_attr($fieldIdAttribute); ?>" <?php echo $field->isRequired() ? 'required' : ''; ?> <?php echo $field->isReadOnly() ? 'readonly' : ''; ?> <?php echo ($maxLength = $field->getMaxLength()) ? 'maxlength="' . (int) $maxLength . '"' : ''; ?> > <?php echo esc_textarea($field->getDefaultValue()); /* Whitespace is important. Do not indent. */ ?> </textarea>
Save File
Cancel