/** * 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('Nickname', 'field type name', 'wpum'); // Field type name $this->type = 'nickname'; // Class of this field $this->class = __CLASS__; // Set registration $this->set_registration = false; // 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', 'wpum'); // 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('Dropdown', 'field type name', 'wpum'); // Field type name $this->type = 'select'; // 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; }
/** * 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('Name Display', 'field type name', 'wpum'); // Field type name $this->type = 'display_name'; // Class of this field $this->class = __CLASS__; // Set registration $this->set_registration = false; // Set requirement $this->set_requirement = false; // Cannot be used multiple times. $this->supports_multiple = false; }