Changeset 59657 for trunk/src/wp-includes/meta.php
- Timestamp:
- 01/17/2025 12:10:08 AM (11 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/meta.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r59023 r59657 24 24 * @param int $object_id ID of the object metadata is for. 25 25 * @param string $meta_key Metadata key. 26 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 26 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 27 * will be returned as the same type when retrieved. Other data types will 28 * be stored as strings in the database: 29 * - false is stored and retrieved as an empty string ('') 30 * - true is stored and retrieved as '1' 31 * - numbers (both integer and float) are stored and retrieved as strings 32 * Must be serializable if non-scalar. 27 33 * @param bool $unique Optional. Whether the specified metadata key should be unique for the object. 28 34 * If true, and the object already has a value for the specified metadata key, … … 571 577 * An empty array if a valid but non-existing object ID is passed and `$single` is false. 572 578 * An empty string if a valid but non-existing object ID is passed and `$single` is true. 579 * Note: Non-serialized values are returned as strings: 580 * - false values are returned as empty strings ('') 581 * - true values are returned as '1' 582 * - numbers (both integer and float) are returned as strings 583 * Arrays and objects retain their original type. 573 584 */ 574 585 function get_metadata( $meta_type, $object_id, $meta_key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.