@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * Retrieve all CMB2 instances that have the specified property set. |
| 75 | 75 | * @since 2.2.0 |
| 76 | 76 | * @param string $property Property name. |
| 77 | - * @param mixed $ignore The value to ignore. |
|
| 77 | + * @param boolean $ignore The value to ignore. |
|
| 78 | 78 | * @return CMB2[] Array of matching cmb2 instances. |
| 79 | 79 | */ |
| 80 | 80 | public static function get_by_property( $property, $ignore = null ) { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * Handler for updating custom field data. |
| 154 | 154 | * @since 2.2.0 |
| 155 | - * @param mixed $value The value of the field |
|
| 155 | + * @param mixed $values The value of the field |
|
| 156 | 156 | * @param object $object The object from the response |
| 157 | 157 | * @param string $field_id Name of field |
| 158 | 158 | * @return bool|int |
@@ -233,6 +233,9 @@ discard block |
||
| 233 | 233 | return $protected; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | + /** |
|
| 237 | + * @param string $field_id |
|
| 238 | + */ |
|
| 236 | 239 | public function field_can_update( $field_id ) { |
| 237 | 240 | |
| 238 | 241 | $field = $this->cmb->get_field( $field_id ); |
@@ -344,7 +344,6 @@ |
||
| 344 | 344 | * |
| 345 | 345 | * @since 2.2.0 |
| 346 | 346 | * |
| 347 | - * @param mixed $data |
|
| 348 | 347 | * @return array $data |
| 349 | 348 | */ |
| 350 | 349 | public function prepare_item( $post ) { |