get_the_author_firstname

函数


get_the_author_firstname ( No parameters )
返回值
  • (string) The author’s first name.
相关
  • get_the_author_meta()
定义位置
  • wp-includes/deprecated.php
    , line 1383
引入
1.5.0
弃用
2.8.0

Retrieve the first name of the author of the current post.

function get_the_author_firstname() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('first_name')' );
	return get_the_author_meta('first_name');
}