wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_object_terms › Hooks de Filtros WordPress

Desde2.8.0
Obsoleton/a
apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args )
Parâmetros: (4)
  • (WP_Term[]|int[]|string[]|string) $terms Array of terms or a count thereof as a numeric string.
    Required: Yes
  • (string) $object_ids Comma separated list of object IDs for which terms were retrieved.
    Required: Yes
  • (string) $taxonomies SQL fragment of taxonomy names from which terms were retrieved.
    Required: Yes
  • (array) $args Array of arguments for retrieving terms for the given object(s). See wp_get_object_terms() for details.
    Required: Yes
Definido em:
Codex:

Filters the terms for a given object or objects.

The $taxonomies parameter passed to this filter is formatted as a SQL fragment. The {@see 'get_object_terms'} filter is recommended as an alternative.





Fonte

return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );