wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_post_link › Hooks de Filtros WordPress

Desde3.0.0
Obsoleton/a
apply_filters( 'pre_post_link', $permalink, $post, $leavename )
Parâmetros: (3)
  • (string) $permalink The site's permalink structure.
    Required: Yes
  • (WP_Post) $post The post in question.
    Required: Yes
  • (bool) $leavename Whether to keep the post name.
    Required: Yes
Definido em:
Codex:

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

Only applies to posts with post_type of 'post'.





Fonte

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