Get Custom Logo Alt Text
I’m trying to get the alt text of the custom logo specified in the theme customization. Unfortunately this doesn’t work because it seems the alt text is not included in the post meta:
$custom_logo_id = get_theme_mod( 'custom_logo' ); get_post_meta($custom_logo_id, '_wp_attachment_image_alt', true);
I would have used
get_custom_logo which includes the alt text, but I’m building my own custom
sizes attributes, and need ONLY the alt text to add to it.
What other options do I have?