/** * Constructor for the field type * * @since 1.0.0 */ public function __construct() { // DO NOT DELETE parent::__construct(); // Label of this field type $this->name = _x('Checkbox', 'field type name', 'wpaam'); // Field type name $this->type = 'checkbox'; // Class of this field $this->class = __CLASS__; // Set registration $this->set_registration = true; // Set requirement $this->set_requirement = false; }
/** * Constructor for the field type * * @since 1.0.0 */ public function __construct() { // DO NOT DELETE parent::__construct(); // Label of this field type. $this->name = _x('File', 'field type name', 'wpaam'); // Field type name. $this->type = 'file'; // Field category. $this->category = 'advanced'; // Class of this field. $this->class = __CLASS__; // Set registration. $this->set_registration = true; // Set requirement. $this->set_requirement = true; }
/** * Constructor for the field type * * @since 1.0.0 */ public function __construct() { // DO NOT DELETE parent::__construct(); // Label of this field type $this->name = _x('Avatar', 'field type name', 'wpaam'); // Field type name $this->type = 'avatar'; // Class of this field $this->class = __CLASS__; // Set registration $this->set_registration = true; // Set requirement $this->set_requirement = true; // Cannot be used multiple times. $this->supports_multiple = false; }
/** * Constructor for the field type * * @since 1.2.0 */ public function __construct() { // DO NOT DELETE parent::__construct(); // Label of this field type $this->name = _x('Multi Select', 'field type name', 'wpaam'); // Field type name $this->type = 'multiselect'; // Class of this field $this->class = __CLASS__; // Set registration $this->set_registration = true; // Set requirement $this->set_requirement = true; // Add repeater to this field type. $this->has_repeater = true; }