wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_link › Filtr WordPress Hooks

Od1.5.0
Przestarzałyn/a
apply_filters( 'post_link', $permalink, $post, $leavename )
Parametry: (3)
  • (string) $permalink The post's permalink.
    Wymagane: Tak
  • (WP_Post) $post The post in question.
    Wymagane: Tak
  • (bool) $leavename Whether to keep the post name.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the permalink for a post.

Only applies to posts with post_type of 'post'.





Źródło

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