# adminify/3.1.7/Libs/adminify-framework/fields/textarea/textarea.php

Adminify – White Label, Admin Menu Editor, Login Customizer, version 3.1.7. 39 lines.

- Page: https://pluginprobe.com/plugins/adminify/3.1.7/code/Libs/adminify-framework/fields/textarea/textarea.php
- Raw: https://pluginprobe.com/plugins/adminify/3.1.7/raw/Libs/adminify-framework/fields/textarea/textarea.php
- Modified: 2023-11-01T08:36:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/adminify/3.1.7/code/Libs/adminify-framework/fields/textarea/textarea.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die; } // Cannot access directly.
/**
 *
 * Field: textarea
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! class_exists( 'ADMINIFY_Field_textarea' ) ) {
	class ADMINIFY_Field_textarea extends ADMINIFY_Fields {

		public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
			parent::__construct( $field, $value, $unique, $where, $parent );
		}

		public function render() {
			echo wp_kses_post( $this->field_before() );
			echo wp_kses_post( $this->shortcoder() );
			echo '<textarea name="' . esc_attr( $this->field_name() ) . '"' . wp_kses_post( $this->field_attributes() ) . '>' . esc_html( $this->value ) . '</textarea>';
			echo wp_kses_post( $this->field_after() );
		}

		public function shortcoder() {
			if ( ! empty( $this->field['shortcoder'] ) ) {
				$instances = ( is_array( $this->field['shortcoder'] ) ) ? $this->field['shortcoder'] : array_filter( (array) $this->field['shortcoder'] );

				foreach ( $instances as $instance_key ) {
					if ( isset( ADMINIFY::$shortcode_instances[ $instance_key ] ) ) {
						$button_title = ADMINIFY::$shortcode_instances[ $instance_key ]['button_title'];

						echo '<a href="#" class="button button-primary adminify-shortcode-button" data-modal-id="' . esc_attr( $instance_key ) . '">' . wp_kses_post( $button_title ) . '</a>';
					}
				}
			}
		}
	}
}

```
