示例#1
0
 /**
  * @param \fewbricks\acf\fields\field $field
  * @return mixed
  */
 protected function add_field($field)
 {
     $this->fields[] = $field->get_settings($this);
     return $field;
 }
示例#2
0
 /**
  * @param \fewbricks\acf\fields\field $field_object
  * @return $this
  */
 public function add_sub_field($field_object)
 {
     $this->settings['sub_fields'][] = $field_object->get_settings($this);
     return $this;
 }
示例#3
0
 /**
  * @param \fewbricks\acf\fields\field $field
  * @return $this
  */
 public function add_field($field)
 {
     $this->settings['fields'][] = $field->get_settings($this);
     return $this;
 }