Link functions are helpers that give you the address of something on your site: a post, the home page, the login page, a search page, or an edit screen. You use them in themes and plugins, so you never type a domain by hand.
Many of them come in pairs. The the_ version prints the link, and the get_ version returns it. Edit links, such as edit_post_link(), appear only for logged-in users who can edit.
Safe by habit.
When a function returns a URL, wrap it with esc_url() before you print it. Functions that print a URL, such as the_permalink(), already escape it for you.
They are helper functions that print or return URLs, such as post links, the home URL, the site URL, search links, and edit links.
the_permalink() prints the URL. get_permalink() returns it. Use get_permalink() when you want to store it or place it inside your own HTML.
home_url() is the address of your front page. site_url() is where WordPress is installed. They differ when WordPress is in a subfolder.
A returned URL may contain special characters. esc_url() makes it safe to print inside an href. Functions that print the URL, such as the_permalink(), already escape it.
Edit links such as edit_post_link() check the user. They print only for logged-in users who can edit that item.
Open the WordPress Link Functions index. It lists all 25 guides in short tables.