Core Function
View Source on Trac ↗ get_objects_in_term()
get_objects_in_term( mixed $term_ids, mixed $taxonomies, mixed $args = array() ) Retrieves object IDs of valid taxonomy and term.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (int | | int[]) $term_ids Term ID or array of term IDs of terms that will be used. Required |
| (string | | string[]) $taxonomies String of taxonomy name or Array of string values of taxonomy names. Required |
| mixed | (array | string) $args { Change the order of the object IDs. Required |
Return Value
((string[])
(string[] | WP_Error) An array of object IDs as numeric strings on success,
WP_Error if the taxonomy does not exist.
Function Information
Since Version
2.3.0
Source File
wp-includes/taxonomy.php
Advertisement