apply_filters( 'post_link', ... )

Filters the permalink for a post.

Parameters:
  • $permalink string
  • $post WP_Post
  • $leavename bool