get_the_author() – Retrieve the author of the current post.
You appear to be a bot. Output may be restricted
Description
Retrieves the author of the current post.
Usage
$string|null = get_the_author( $deprecated );
Parameters
- $deprecated
- ( string ) optional – Deprecated.
Returns
string|null The author's display name.
Source
File name: wordpress/wp-includes/author-template.php
Lines:
1 to 16 of 16
function get_the_author( $deprecated = '' ) { global $authordata; if ( ! empty( $deprecated ) ) { _deprecated_argument( get_the_author, '2.1.0' ); } /** * Filters the display name of the current post's author. * * @since 2.9.0 * * @param string|null $display_name The author's display name. */ return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null ); }