/** * @param \fewbricks\acf\fields\field $field * @return mixed */ protected function add_field($field) { $this->fields[] = $field->get_settings($this); return $field; }
/** * @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; }
/** * @param \fewbricks\acf\fields\field $field * @return $this */ public function add_field($field) { $this->settings['fields'][] = $field->get_settings($this); return $this; }