link_attributes()
Twig function of the framework; its result is HTML and is printed without escaping.
The attributes of an a element for a link: href (escaped with
esc_url()) and, for a link that opens in a new tab, target="_blank" rel="noopener". The output is HTML and is printed unescaped. Returns
'' for a link without URL (also a link to content that no longer
exists or is not public) or with a URL esc_url() rejects, so check
link.url before you print the element. Write classes and other
attributes next to it.
Returns string