args = $args; $this->cmb_id = $this->prop( 'cmb_id' ); } public function add_field( $field ) { if ( $field instanceof CMB2_Field ) { $this->field_ids[ $field->id() ] = 1; } elseif ( is_array( $field ) ) { $this->field_ids[ $field['id'] ] = 1; } else { $this->field_ids[ $field ] = 1; } } public function get_field_ids() { return $this->field_ids; } }