WordPress Get Perma Link

// Retrieves the full permalink for the current post or post ID.
get_permalink( int|WP_Post $post, bool $leavename = false )
TheDutchScorpion