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



post_link_category › Hooks de Filtros WordPress

Desde3.5.0
Obsoleton/a
› apply_filters( 'post_link_category', $cats[0], $cats, $post )
Parâmetros: (3)
  • () cat The category to use in the permalink.
    Required: Yes
  • () cats Array of all categories (WP_Term objects) associated with the post.
    Required: Yes
  • () post The post in question.
    Required: Yes
Definido em:
Codex:

Filters the category that gets used in the %category% permalink token.





Fonte

$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );