diff --git src/wp-includes/meta.php src/wp-includes/meta.php
index 213bfd6a73..303fb29679 100644
|
|
function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal |
590 | 590 | } |
591 | 591 | |
592 | 592 | /** |
593 | | * Retrieves default metadata value for the specified object. |
| 593 | * Retrieves default metadata value for the specified meta key and object. |
594 | 594 | * |
595 | 595 | * By default, an empty string is returned if `$single` is true, or an empty array |
596 | 596 | * if it's false. |
… |
… |
function get_metadata_default( $meta_type, $object_id, $meta_key, $single = fals |
613 | 613 | } |
614 | 614 | |
615 | 615 | /** |
616 | | * Filter the default value for a specified object. |
| 616 | * Filter the default metadata value for a specified meta key and object. |
617 | 617 | * |
618 | 618 | * The dynamic portion of the hook, `$meta_type`, refers to the meta object type |
619 | | * (post, comment, term, user, or any other type with an associated meta table). |
| 619 | * (post, comment, term, user, blog, or any other type with an associated meta |
| 620 | * table). Possible filter names include: |
| 621 | * |
| 622 | * - `default_post_metadata` |
| 623 | * - `default_comment_metadata` |
| 624 | * - `default_term_metadata` |
| 625 | * - `default_user_metadata` |
620 | 626 | * |
621 | 627 | * @since 5.5.0 |
622 | 628 | * |
… |
… |
function sanitize_meta( $meta_key, $meta_value, $object_type, $object_subtype = |
1227 | 1233 | * `$sanitize_callback` and `$auth_callback` have been folded into this array. |
1228 | 1234 | * @since 4.9.8 The `$object_subtype` argument was added to the arguments array. |
1229 | 1235 | * @since 5.3.0 Valid meta types expanded to include "array" and "object". |
| 1236 | * @since 5.5.0 The `$default` argument was added to the arguments array. |
1230 | 1237 | * |
1231 | 1238 | * @param string $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', |
1232 | 1239 | * or any other object type with an associated meta table. |