← All changes
|
jetpack_vendor/automattic/jetpack-sync/src/interface-replicastore.php
+15
-3
12.5.2
→
16.3-beta
View file →
| @@ -313,8 +313,19 @@ | ||
| 313 | 313 | */ |
| 314 | 314 | public function delete_batch_metadata( $type, $object_ids, $meta_key ); |
| 315 | 315 | |
| 316 | 316 | /** |
| 317 | + * Delete metadata with a certain key and value for all objects. | |
| 318 | + * | |
| 319 | + * @access public | |
| 320 | + * | |
| 321 | + * @param string $type Meta type. | |
| 322 | + * @param string $meta_key Meta key. | |
| 323 | + * @param mixed $meta_value Meta value to match. | |
| 324 | + */ | |
| 325 | + public function delete_metadata_by_key_value( $type, $meta_key, $meta_value ); | |
| 326 | + | |
| 327 | + /** | |
| 317 | 328 | * Retrieve value of a constant based on the constant name. |
| 318 | 329 | * |
| 319 | 330 | * @access public |
| 320 | 331 | * |
| @@ -413,11 +424,11 @@ | ||
| 413 | 424 | * Retrieve a particular term. |
| 414 | 425 | * |
| 415 | 426 | * @access public |
| 416 | 427 | * |
| 417 | - * @param string $taxonomy Taxonomy slug. | |
| 418 | - * @param int $term_id ID of the term. | |
| 419 | - * @param string $term_key ID Field `term_id` or `term_taxonomy_id`. | |
| 428 | + * @param string|false $taxonomy Taxonomy slug. | |
| 429 | + * @param int $term_id ID of the term. | |
| 430 | + * @param string $term_key ID Field `term_id` or `term_taxonomy_id`. | |
| 420 | 431 | */ |
| 421 | 432 | public function get_term( $taxonomy, $term_id, $term_key = 'term_id' ); |
| 422 | 433 | |
| 423 | 434 | /** |
| @@ -485,8 +496,9 @@ | ||
| 485 | 496 | * |
| 486 | 497 | * @access public |
| 487 | 498 | * |
| 488 | 499 | * @param int $user_id User ID. |
| 500 | + * @return \WP_User|null User object, or `null` if user invalid/not found. | |
| 489 | 501 | */ |
| 490 | 502 | public function get_user( $user_id ); |
| 491 | 503 | |
| 492 | 504 | /** |