Un motore di ricerca WordPress per sviluppatori e autori di temi



get_the_author ›

Da1.5.0
Deprecaton/a
get_the_author ( $deprecated = '' )
Parametri:
  • (string) $deprecated Deprecated.
    Richiesto: No
    Default: (vuoto)
Ritorna:
  • (string|null) The author's display name.
Definito a:
Codex:

Retrieve the author of the current post.



Sorgenti

function get_the_author( $deprecated = '' ) {
	global $authordata;

	if ( ! empty( $deprecated ) ) {
		_deprecated_argument( __FUNCTION__, '2.1.0' );
	}

	/**
	 * Filters the display name of the current post's author.
	 *
	 * @since 2.9.0
	 *
	 * @param string $authordata->display_name The author's display name.
	 */
	return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : null );
}