I've come across situations where people have used either
esc_url() with certain WP functions such as
home_url('/'). An example being in the opening anchor tag of
<a> link back to the homepage such as this:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
How do you know which WP functions need to be escaped and does it matter if you use
Any advice or guidance would be wonderful.