Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_post_link ›

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

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

Only applies to posts with post_type of 'post'.





Sorgenti

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