@@ 22-24 (lines=3) @@ | ||
19 | * @param Field $field The field to save. |
|
20 | */ |
|
21 | public function save( Field $field ) { |
|
22 | if ( ! update_metadata( $this->get_meta_type(), $this->get_id(), $field->get_name(), $field->get_value() ) ) { |
|
23 | add_metadata( $this->get_meta_type(), $this->get_id(), $field->get_name(), $field->get_value(), true ); |
|
24 | } |
|
25 | } |
|
26 | ||
27 | /** |
@@ 32-34 (lines=3) @@ | ||
29 | * @param Field $field The field to save. |
|
30 | */ |
|
31 | public function save( Field $field ) { |
|
32 | if ( ! update_metadata( $this->get_meta_type(), $this->get_id(), $this->get_clean_field_name( $field ), $field->get_value() ) ) { |
|
33 | add_metadata( $this->get_meta_type(), $this->get_id(), $this->get_clean_field_name( $field ), $field->get_value(), true ); |
|
34 | } |
|
35 | } |
|
36 | ||
37 | /** |