Changeset 46232 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 09/21/2019 05:40:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r46196 r46232 1359 1359 * 1360 1360 * @param int|string $term The term to check. Accepts term ID, slug, or name. 1361 * @param string $taxonomy The taxonomy name to use1361 * @param string $taxonomy Optional. The taxonomy name to use. 1362 1362 * @param int $parent Optional. ID of parent term under which to confine the exists search. 1363 1363 * @return mixed Returns null if the term does not exist. Returns the term ID … … 2098 2098 * @since 2.3.0 2099 2099 * 2100 * @param string $term The term to add or update.2100 * @param string $term The term name to add or update. 2101 2101 * @param string $taxonomy The taxonomy to which to add the term. 2102 2102 * @param array|string $args { … … 2118 2118 return new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); 2119 2119 } 2120 2120 2121 /** 2121 2122 * Filters a term before it is sanitized and inserted into the database. … … 2123 2124 * @since 3.0.0 2124 2125 * 2125 * @param string $term The term to add or update.2126 * @param string $taxonomy Taxonomy slug.2126 * @param string|WP_Error $term The term name to add or update, or a WP_Error object if there's an error. 2127 * @param string $taxonomy Taxonomy slug. 2127 2128 */ 2128 2129 $term = apply_filters( 'pre_insert_term', $term, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.