wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_type_link › Les Filtres WordPress

Depuis3.0.0
Dépréciéen/a
apply_filters( 'post_type_link', $post_link, $post, $leavename, $sample )
Paramètres: (4)
  • (string) $post_link The post's permalink.
    Requis: Oui
  • (WP_Post) $post The post in question.
    Requis: Oui
  • (bool) $leavename Whether to keep the post name.
    Requis: Oui
  • (bool) $sample Is it a sample permalink.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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