wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_post_link › WordPress Filter Hooks

Seit3.0.0
Veraltetn/v
apply_filters( 'pre_post_link', $permalink, $post, $leavename )
Parameter: (3)
  • (string) $permalink The site's permalink structure.
    Erforderlich: Ja
  • (WP_Post) $post The post in question.
    Erforderlich: Ja
  • (bool) $leavename Whether to keep the post name.
    Erforderlich: Ja
Definiert in:
Codex:

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

Only applies to posts with post_type of 'post'.





Quellcode

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