• File: class-control-multiple-select.php
  • Full Path: /home/atelipy/www/wpmain/multiple-select/class-control-multiple-select.php
  • File size: 836 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Multiple Select control class.
 *
 * @package     OceanWP WordPress theme
 * @subpackage  Controls
 * @see   		https://github.com/justintadlock/butterbean
 * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */

/**
 * Multiple Select control class.
 *
 * @since  1.0.0
 * @access public
 */
class OceanWP_ButterBean_Control_Multiple_Select extends ButterBean_Control {

	/**
	 * The type of control.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $type = 'multiple-select';

	/**
	 * Adds custom data to the json array. This data is passed to the Underscore template.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function to_json() {
		parent::to_json();
		$this->json['value'] = (array) $this->get_value();
	}
}