Changeset 49947 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 01/08/2021 03:22:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r49935 r49947 1132 1132 1133 1133 /** 1134 * Retrieve the terms in a given taxonomy or list of taxonomies.1134 * Retrieves the terms in a given taxonomy or list of taxonomies. 1135 1135 * 1136 1136 * You can fully inject any customizations to the query before it is sent, as 1137 1137 * well as control the output with a filter. 1138 * 1139 * The return type varies depending on the value passed to `$args['fields']`. See 1140 * WP_Term_Query::get_terms() for details. In all cases, a `WP_Error` object will 1141 * be returned if an invalid taxonomy is requested. 1138 1142 * 1139 1143 * The {@see 'get_terms'} filter will be called when the cache has the term and will … … 1178 1182 * function parameter will be parsed as a taxonomy or array of taxonomies. 1179 1183 * Default empty. 1180 * @return WP_Term[]|int|WP_Error Array of WP_Term instances, a count thereof, 1181 * or WP_Error if any of the taxonomies do not exist. 1184 * @return WP_Term[]|int[]|string[]|string|WP_Error Array of terms, a count thereof as a numeric string, 1185 * or WP_Error if any of the taxonomies do not exist. 1186 * See the function description for more information. 1182 1187 */ 1183 1188 function get_terms( $args = array(), $deprecated = '' ) { … … 1746 1751 * function parameter will be parsed as a taxonomy or array of taxonomies. 1747 1752 * Default empty. 1748 * @return array|int|WP_Error Number of terms in that taxonomy or WP_Error if the taxonomy does not exist. 1753 * @return string|WP_Error Numeric string containing the number of terms in that 1754 * taxonomy or WP_Error if the taxonomy does not exist. 1749 1755 */ 1750 1756 function wp_count_terms( $args = array(), $deprecated = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.