Changeset 59657 for trunk/src/wp-includes/post.php
- Timestamp:
- 01/17/2025 12:10:08 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r59602 r59657 2559 2559 * @param int $post_id Post ID. 2560 2560 * @param string $meta_key Metadata name. 2561 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 2561 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 2562 * will be returned as the same type when retrieved. Other data types will 2563 * be stored as strings in the database: 2564 * - false is stored and retrieved as an empty string ('') 2565 * - true is stored and retrieved as '1' 2566 * - numbers (both integer and float) are stored and retrieved as strings 2567 * Must be serializable if non-scalar. 2562 2568 * @param bool $unique Optional. Whether the same key should not be added. 2563 2569 * Default false. … … 2616 2622 * An empty array if a valid but non-existing post ID is passed and `$single` is false. 2617 2623 * An empty string if a valid but non-existing post ID is passed and `$single` is true. 2624 * Note: Non-serialized values are returned as strings: 2625 * - false values are returned as empty strings ('') 2626 * - true values are returned as '1' 2627 * - numbers (both integer and float) are returned as strings 2628 * Arrays and objects retain their original type. 2618 2629 */ 2619 2630 function get_post_meta( $post_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.