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



pre_post_link › Les Filtres WordPress

Depuis3.0.0
Dépréciéen/a
› apply_filters( 'pre_post_link', $permalink, $post, $leavename )
Paramètres: (3)
  • () permalink The site's permalink structure.
    Requis: Oui
  • () post The post in question.
    Requis: Oui
  • () leavename Whether to keep the post name.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the permalink structure for a post before token replacement occurs.

Only applies to posts with post_type of 'post'.




Source

$permalink = apply_filters( 'pre_post_link', $permalink, $post, $leavename );