get_author_name() WP 1.0.0
Устарела с версии 2.8.0. Больше не поддерживается и может быть удалена. Используйте get_the_author_meta().╳
Retrieve the specified author's preferred display name.
Хуков нет.
Возвращает
Строку. The author's display name.
Использование
get_author_name( $auth_id );
- $auth_id(число)
- The ID of the author.
Заметки
- Смотрите: get_the_author_meta()
Список изменений
С версии 1.0.0 | Введена. |
Устарела с 2.8.0 | Use get_the_author_meta() |
Код get_author_name() get author name WP 5.6.2
function get_author_name( $auth_id = false ) {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'display_name\')' );
return get_the_author_meta('display_name', $auth_id);
}