WP_Media_List_Table::column_author() WordPress Method
The WP_Media_List_Table::column_author() method is used to display the author column in the media list table. This method takes a single argument, which is the WP_Post object for the current row. The column is populated by the post_author field of the WP_Post object. If the author is a registered user, their user_login name is displayed. If the author is not a registered user, the author field is displayed.
WP_Media_List_Table::column_author( WP_Post $post ) #
Handles the author column output.
Parameters
Source
File: wp-admin/includes/class-wp-media-list-table.php
public function column_author( $post ) { printf( '<a href="%s">%s</a>', esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ), get_the_author() ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |