wp_get_object_terms_args

过滤钩子
apply_filters( 'wp_get_object_terms_args', $args, $object_ids, $taxonomies )
参数
  • (array) $args An array of arguments for retrieving terms for the given object(s). See {@see wp_get_object_terms()} for details.
    Required:
  • (int[]) $object_ids Array of object IDs.
    Required:
  • (string[]) $taxonomies Array of taxonomy names to retrieve terms from.
    Required:
定义位置
相关勾子
wp_get_object_termsget_object_termsset_object_termsget_terms_argswidget_categories_args
相关方法
wp_get_object_termswp_set_object_termsget_object_term_cachewp_remove_object_termswp_add_object_termswp_get_post_terms
引入
4.9.0
弃用
-

wp_get_object_terms_args:此函数用于检索用于获取与给定对象关联的术语的参数。

用于检索对象术语的过滤参数。

$args = apply_filters( 'wp_get_object_terms_args', $args, $object_ids, $taxonomies );

常见问题

FAQs
查看更多 >