Changeset 59657 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 01/17/2025 12:10:08 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r58962 r59657 1387 1387 * @param int $term_id Term ID. 1388 1388 * @param string $meta_key Metadata name. 1389 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1389 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 1390 * will be returned as the same type when retrieved. Other data types will 1391 * be stored as strings in the database: 1392 * - false is stored and retrieved as an empty string ('') 1393 * - true is stored and retrieved as '1' 1394 * - numbers (both integer and float) are stored and retrieved as strings 1395 * Must be serializable if non-scalar. 1390 1396 * @param bool $unique Optional. Whether the same key should not be added. 1391 1397 * Default false. … … 1433 1439 * An empty array if a valid but non-existing term ID is passed and `$single` is false. 1434 1440 * An empty string if a valid but non-existing term ID is passed and `$single` is true. 1441 * Note: Non-serialized values are returned as strings: 1442 * - false values are returned as empty strings ('') 1443 * - true values are returned as '1' 1444 * - numbers are returned as strings 1445 * Arrays and objects retain their original type. 1435 1446 */ 1436 1447 function get_term_meta( $term_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.