Changeset 55398 for trunk/src/wp-includes/meta.php
- Timestamp:
- 02/21/2023 04:37:03 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/meta.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r54510 r55398 172 172 * @param mixed $prev_value Optional. Previous value to check before updating. 173 173 * If specified, only update existing metadata entries with 174 * this value. Otherwise, update all entries. Default empty .174 * this value. Otherwise, update all entries. Default empty string. 175 175 * @return int|bool The new meta field ID if a field with the given key didn't exist 176 176 * and was therefore added, true on successful update, … … 370 370 * (For backward compatibility, it is not possible to pass an empty string 371 371 * to delete those entries with an empty string for a value.) 372 * Default empty string. 372 373 * @param bool $delete_all Optional. If true, delete matching metadata entries for all objects, 373 374 * ignoring the specified object_id. Otherwise, only delete … … 559 560 * @param int $object_id ID of the object metadata is for. 560 561 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 561 * the specified object. Default empty .562 * the specified object. Default empty string. 562 563 * @param bool $single Optional. If true, return only the first value of the specified `$meta_key`. 563 564 * This parameter has no effect if `$meta_key` is not specified. Default false. … … 586 587 * @param int $object_id ID of the object metadata is for. 587 588 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 588 * the specified object. Default empty .589 * the specified object. Default empty string. 589 590 * @param bool $single Optional. If true, return only the first value of the specified `$meta_key`. 590 591 * This parameter has no effect if `$meta_key` is not specified. Default false. … … 1231 1232 * @param string $primary_table Primary database table name. 1232 1233 * @param string $primary_id_column Primary ID column name. 1233 * @param object $context Optional. The main query object 1234 * @param object $context Optional. The main query object. Default null. 1234 1235 * @return string[]|false { 1235 1236 * Array containing JOIN and WHERE SQL clauses to append to the main query, … … 1275 1276 * @param string $meta_key Metadata key. 1276 1277 * @param string $meta_type Optional. Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1277 * or any other object type with an associated meta table. Default empty .1278 * or any other object type with an associated meta table. Default empty string. 1278 1279 * @return bool Whether the meta key is considered protected. 1279 1280 */ … … 1305 1306 * @param string $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1306 1307 * or any other object type with an associated meta table. 1307 * @param string $object_subtype Optional. The subtype of the object type. 1308 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1308 1309 * @return mixed Sanitized $meta_value. 1309 1310 */ … … 1581 1582 * or any other object type with an associated meta table. 1582 1583 * @param string $meta_key Metadata key. 1583 * @param string $object_subtype Optional. The subtype of the object type. 1584 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1584 1585 * @return bool True if the meta key is registered to the object type and, if provided, 1585 1586 * the object subtype. False if not. … … 1600 1601 * or any other object type with an associated meta table. 1601 1602 * @param string $meta_key Metadata key. 1602 * @param string $object_subtype Optional. The subtype of the object type. 1603 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1603 1604 * @return bool True if successful. False if the meta key was not registered. 1604 1605 */ … … 1649 1650 * @param string $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1650 1651 * or any other object type with an associated meta table. 1651 * @param string $object_subtype Optional. The subtype of the object type. 1652 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1652 1653 * @return array[] List of registered metadata args, keyed by their meta keys. 1653 1654 */
Note: See TracChangeset
for help on using the changeset viewer.