Inside a header i have a brand image with link to homepage. Now i have to write the url like: “https://www.domain.com” but for example when i clone the site to a development environment or change protocol i need to change this url. So i created the shortcode like below. But then the link doesnt work i get “https://www.domain.com/[home]” instead of the value the shortcode returns.

function home() {
return get_site_url();
}
add_shortcode( 'home', 'home' );