Changeset 51302 for trunk/src/wp-admin/includes/taxonomy.php
- Timestamp:
- 07/01/2021 10:01:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/taxonomy.php
r49927 r51302 20 20 * @param int|string $cat_name Category name. 21 21 * @param int $parent Optional. ID of parent term. 22 * @return mixed22 * @return string|null Returns the category ID as a numeric string if the pairing exists, null if not. 23 23 */ 24 24 function category_exists( $cat_name, $parent = null ) { … … 216 216 * 217 217 * @param int|string $tag_name 218 * @return mixed 218 * @return mixed Returns null if the term does not exist. 219 * Returns an array of the term ID and the term taxonomy ID if the pairing exists. 220 * Returns 0 if term ID 0 is passed to the function. 219 221 */ 220 222 function tag_exists( $tag_name ) {
Note: See TracChangeset
for help on using the changeset viewer.