I am trying to get the alternative text of the custom logo specified in the theme customization. Unfortunately, this does not work because it seems that the alternative 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 alternative text, but I'm building my own custom
sizes attributes, and need ONLY alternative text to add to it.
What other options do I have?