Current File : /home/kelaby89/abl.academy/wp-content/plugins/thim-core/inc/customizer/controls/textarea/field.php |
<?php
namespace ThimPress\Customizer\Field;
class Textarea extends Generic {
public $type = 'thim-textarea';
public function filter_control_args( $args, $wp_customize ) {
if ( $args['id'] === $this->args['id'] ) {
$args = parent::filter_control_args( $args, $wp_customize );
$args['type'] = 'thim-generic';
$args['choices'] = isset( $args['choices'] ) ? $args['choices'] : array();
$args['choices']['element'] = 'textarea';
$args['choices']['rows'] = '5';
}
return $args;
}
}