wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



post_link_category › WordPress Filter Hooks

Da3.5.0
Deprecaton/a
apply_filters( 'post_link_category', $cats[0], $cats, $post )
Parametri: (3)
  • (WP_Term) $cat The category to use in the permalink.
    Richiesto:
  • (array) $cats Array of all categories (WP_Term objects) associated with the post.
    Richiesto:
  • (WP_Post) $post The post in question.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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