A WordPress-centric search engine for devs and theme authors



the_permalink ›

Since4.4.0
Deprecatedn/a
apply_filters( 'the_permalink', get_permalink( $post )
Parameters: (2)
  • (string) $permalink The permalink for the current post.
    Required: Yes
  • (int|WP_Post) $post Post ID, WP_Post object, or 0. Default 0.
    Required: Yes
Defined at:
Codex:

Filters the display of the permalink for the current post.





Source

echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );