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



post_type_link › WordPress Filter Hooks

Da3.0.0
Deprecaton/a
apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample )
Parametri: (4)
  • (string) $post_link The post's permalink.
    Richiesto:
  • (WP_Post) $post The post in question.
    Richiesto:
  • (bool) $leavename Whether to keep the post name.
    Richiesto:
  • (bool) $sample Is it a sample permalink.
    Richiesto:
Definito a:
Codex:

Filters the permalink for a post of a custom post type.





Sorgenti

return apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample );