Handles the author column output.
Parameters
Source
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">—</span><span class="screen-reader-text">' . __( '(no author)' ) . '</span>';
}
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.