Title: WP_Media_List_Table::column_author
Published: August 18, 2015
Last modified: May 20, 2026

---

# WP_Media_List_Table::column_author( WP_Post $post )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#wp--skip-link--target)

Handles the author column output.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#parameters)󠁿

 `$post`[WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)required

The current [WP_Post](https://developer.wordpress.org/reference/classes/wp_post/)
object.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#source)󠁿

    ```php
    public function column_author( $post ) {
    	$author = get_the_author();

    	if ( ! empty( $author ) ) {
    		printf(
    			'<a href="%s">%s</a>',
    			esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ),
    			esc_html( $author )
    		);
    	} else {
    		echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . __( '(no author)' ) . '</span>';
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-media-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-media-list-table.php#L539)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-media-list-table.php#L539-L551)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#related)󠁿

| Uses | Description | 
| [get_the_author_meta()](https://developer.wordpress.org/reference/functions/get_the_author_meta/)`wp-includes/author-template.php` |

Retrieves the requested data of the author of the current post.

  | 
| [get_the_author()](https://developer.wordpress.org/reference/functions/get_the_author/)`wp-includes/author-template.php` |

Retrieves the author of the current post.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [esc_url()](https://developer.wordpress.org/reference/functions/esc_url/)`wp-includes/formatting.php` |

Checks and cleans a URL.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  | 
| [add_query_arg()](https://developer.wordpress.org/reference/functions/add_query_arg/)`wp-includes/functions.php` |

Retrieves a modified URL query string.

  |

[Show 4 more](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_media_list_table/column_author/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.8.0](https://developer.wordpress.org/reference/since/6.8.0/) | Added fallback text when author’s name is unknown. | 
| [4.3.0](https://developer.wordpress.org/reference/since/4.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_media_list_table%2Fcolumn_author%2F)
before being able to contribute a note or feedback.