Changeset 29129
- Timestamp:
- 07/13/2014 04:17:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r29128 r29129 1220 1220 * Optional. Array or string of arguments to get terms. 1221 1221 * 1222 * @type string $orderby Field(s) to order terms by. Accepts term fields, though1223 * empty defaults to 'term_id'. Default 'name'.1224 * @type string $order Whether to order terms in ascending or descending order.1225 * Accepts 'ASC' (ascending) or 'DESC' (descending).1226 * Default 'ASC'.1227 * @type bool|int $hide_empty Whether to hide terms not assigned to any posts. Accepts1228 * 1|true or 0|false. Default 1|true.1229 * @type array|string $include Array or comma/space-separated string of term ids to include.1230 * Default empty array.1231 * @type array|string $exclude Array or comma/space-separated string of term ids to exclude.1232 * If $include is non-empty, $exclude is ignored.1233 * Default empty array.1234 * @type array|string $exclude_tree Array or comma/space-separated string of term ids to exclude1235 * along with all of their descendant terms. If $include is1236 * non-empty, $exclude_tree is ignored. Default empty array.1237 * @type int $number Maximum number of terms to return. Accepts 1+ or -1 (all).1238 * Default -1.1239 * @type int $offset The number by which to offset the terms query. Default empty.1240 * @type string $fields Term fields to query for. Accepts 'all' (returns an array of1241 * term objects), 'ids' or 'names' (returns an array of integers1242 * or strings, respectively. Default 'all'.1243 * @type string $slug Slug to return term(s) for. Default empty.1244 * @type bool $hierarchical Whether to include terms that have non-empty descendants (even1245 * if $hide_empty is set to true). Default true.1246 * @type string $search Search criteria to match terms. Will be SQL-formatted with1247 * wildcards before and after. Default empty.1248 * @type string $name__like Retrieve terms with criteria by which a term is LIKE $name__like.1249 * Default empty.1250 * @type string $description__like Retrieve terms where the description is LIKE $description__like.1251 * Default empty.1252 * @type bool $pad_counts Whether to pad the quantity of a term's children in the quantity1253 * of each term's "count" object variable. Default false.1254 * @type string $get Whether to return terms regardless of ancestry or whether the terms1255 * are empty. Accepts 'all' or empty (disabled). Default empty.1256 * @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies1257 * are passed, $child_of is ignored. Default 0.1258 * @type int|string $parent Parent term ID to retrieve direct-child terms of. Default empty.1259 * @type string $cache_domain Unique cache key to be produced when this query is stored in an1260 * object cache. Default is 'core'.1222 * @type string $orderby Field(s) to order terms by. Accepts term fields, though 1223 * empty defaults to 'term_id'. Default 'name'. 1224 * @type string $order Whether to order terms in ascending or descending order. 1225 * Accepts 'ASC' (ascending) or 'DESC' (descending). 1226 * Default 'ASC'. 1227 * @type bool|int $hide_empty Whether to hide terms not assigned to any posts. Accepts 1228 * 1|true or 0|false. Default 1|true. 1229 * @type array|string $include Array or comma/space-separated string of term ids to include. 1230 * Default empty array. 1231 * @type array|string $exclude Array or comma/space-separated string of term ids to exclude. 1232 * If $include is non-empty, $exclude is ignored. 1233 * Default empty array. 1234 * @type array|string $exclude_tree Array or comma/space-separated string of term ids to exclude 1235 * along with all of their descendant terms. If $include is 1236 * non-empty, $exclude_tree is ignored. Default empty array. 1237 * @type int $number Maximum number of terms to return. Accepts 1+ or -1 (all). 1238 * Default -1. 1239 * @type int $offset The number by which to offset the terms query. Default empty. 1240 * @type string $fields Term fields to query for. Accepts 'all' (returns an array of 1241 * term objects), 'ids' or 'names' (returns an array of integers 1242 * or strings, respectively. Default 'all'. 1243 * @type string $slug Slug to return term(s) for. Default empty. 1244 * @type bool $hierarchical Whether to include terms that have non-empty descendants (even 1245 * if $hide_empty is set to true). Default true. 1246 * @type string $search Search criteria to match terms. Will be SQL-formatted with 1247 * wildcards before and after. Default empty. 1248 * @type string $name__like Retrieve terms with criteria by which a term is LIKE $name__like. 1249 * Default empty. 1250 * @type string $description__like Retrieve terms where the description is LIKE $description__like. 1251 * Default empty. 1252 * @type bool $pad_counts Whether to pad the quantity of a term's children in the quantity 1253 * of each term's "count" object variable. Default false. 1254 * @type string $get Whether to return terms regardless of ancestry or whether the terms 1255 * are empty. Accepts 'all' or empty (disabled). Default empty. 1256 * @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies 1257 * are passed, $child_of is ignored. Default 0. 1258 * @type int|string $parent Parent term ID to retrieve direct-child terms of. Default empty. 1259 * @type string $cache_domain Unique cache key to be produced when this query is stored in an 1260 * object cache. Default is 'core'. 1261 1261 * } 1262 1262 * @return array|WP_Error List of Term Objects and their children. Will return WP_Error, if any of $taxonomies
Note: See TracChangeset
for help on using the changeset viewer.