class-kirki-field-textarea.php (669B)
1 <?php 2 /** 3 * Override field methods 4 * 5 * @package Kirki 6 * @subpackage Controls 7 * @copyright Copyright (c) 2016, Aristeides Stathopoulos 8 * @license http://opensource.org/licenses/https://opensource.org/licenses/MIT 9 * @since 2.2.7 10 */ 11 12 if ( ! class_exists( 'Kirki_Field_Textarea' ) ) { 13 14 /** 15 * Field overrides. 16 */ 17 class Kirki_Field_Textarea extends Kirki_Field_Kirki_Generic { 18 19 /** 20 * Sets the $choices 21 * 22 * @access protected 23 */ 24 protected function set_choices() { 25 26 if ( ! is_array( $this->choices ) ) { 27 $this->choices = array(); 28 } 29 $this->choices['element'] = 'textarea'; 30 $this->choices['rows'] = '5'; 31 32 } 33 } 34 }