apply_filters( 'post_type_link', ... )

Filters the permalink for a post of a custom post type.

Parameters:
  • $post_link string
  • $post WP_Post
  • $leavename bool
  • $sample bool