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



post_link ›

Desde1.5.0
Obsoleton/a
apply_filters( 'post_link', $permalink, $post, $leavename )
Parâmetros: (3)
  • (string) $permalink The post's permalink.
    Required: Yes
  • (WP_Post) $post The post in question.
    Required: Yes
  • (bool) $leavename Whether to keep the post name.
    Required: Yes
Definido em:
Codex:

Filters the permalink for a post.

Only applies to posts with post_type of 'post'.





Fonte

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