Support » Fixing WordPress » Media Library to display ALT TEXTS in list view

  • Resolved John


    Is there a way to have a column with alt texts of images in Media Library global list view?

    There are available columns for Author, Comments, etc but not for Alt Texts.
    Is there a way to add this column somehow?

    I’m in the process of updating all images’ alt texts and it would be handy having a global view with all images’ alt texts to see where they are missing or should be edited, instead of having to open each and every image one by one in edit view.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.
    How about this, in your functions.php:

    add_filter('manage_media_columns', 'posts_columns_attachment_alt', 1);
    add_action('manage_media_custom_column', 'posts_custom_columns_attachment_alt', 1, 2);
    function posts_columns_attachment_alt($defaults){
        $defaults['post_attachment_alt'] = 'Alt';
        return $defaults;
    function posts_custom_columns_attachment_alt($column_name, $id){
        if($column_name === 'post_attachment_alt'){
            echo get_post_meta($id, '_wp_attachment_image_alt', true);

    Thank you very much, works fine and I get the new column in there!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.