/**
  *
  * Default value of multifileds, refers to an item choice value or smart tags: {{first}} / {{last}}.
  *
  * @param string $default
  *
  * @return $this
  * @access public
  */
 public function setDefault($default)
 {
     parent::setDefault(array($default));
     return $this;
 }
示例#2
0
 /**
  *
  * Class constructor
  *
  * @param string $control_name
  *
  * @throws \SilverWp\Customizer\Control\Exception
  */
 public function __construct($control_name)
 {
     parent::__construct($control_name);
     $this->setName($control_name);
 }
示例#3
0
 /**
  * Class constructor
  *
  * @param string $name field name
  *
  * @access public
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->setRepeating(false);
 }