Changeset 59657 for trunk/src/wp-includes/user.php
- Timestamp:
- 01/17/2025 12:10:08 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r59633 r59657 1152 1152 * @param int $user_id User ID. 1153 1153 * @param string $meta_key Metadata name. 1154 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1154 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 1155 * will be returned as the same type when retrieved. Other data types will 1156 * be stored as strings in the database: 1157 * - false is stored and retrieved as an empty string ('') 1158 * - true is stored and retrieved as '1' 1159 * - numbers (both integer and float) are stored and retrieved as strings 1160 * Must be serializable if non-scalar. 1155 1161 * @param bool $unique Optional. Whether the same key should not be added. 1156 1162 * Default false. … … 1201 1207 * An empty array if a valid but non-existing user ID is passed and `$single` is false. 1202 1208 * An empty string if a valid but non-existing user ID is passed and `$single` is true. 1209 * Note: Non-serialized values are returned as strings: 1210 * - false values are returned as empty strings ('') 1211 * - true values are returned as '1' 1212 * - numbers (both integer and float) are returned as strings 1213 * Arrays and objects retain their original type. 1203 1214 */ 1204 1215 function get_user_meta( $user_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.