コード例 #1
0
ファイル: checkbox.php プロジェクト: devd123/wpaam
 /**
  * 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;
 }
コード例 #2
0
ファイル: file.php プロジェクト: devd123/wpaam
 /**
  * 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;
 }
コード例 #3
0
ファイル: avatar.php プロジェクト: devd123/wpaam
 /**
  * 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;
 }
コード例 #4
0
ファイル: multiselect.php プロジェクト: devd123/wpaam
 /**
  * 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;
 }