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



post_link › WordPress Filter Hooks

Da1.5.0
Deprecaton/a
apply_filters( 'post_link', $permalink, $post, $leavename )
Parametri: (3)
  • (string) $permalink The post's permalink.
    Richiesto:
  • (WP_Post) $post The post in question.
    Richiesto:
  • (bool) $leavename Whether to keep the post name.
    Richiesto:
Definito a:
Codex:

Filters the permalink for a post.

Only applies to posts with post_type of 'post'.





Sorgenti

return apply_filters( 'post_link', $permalink, $post, $leavename );