Handles the post author column output.
Parameters
Source
public function column_author( $post ) {
$author = get_the_author();
if ( ! empty( $author ) ) {
$args = array(
'post_type' => $post->post_type,
'author' => get_the_author_meta( 'ID' ),
);
echo $this->get_edit_link( $args, 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.