функция
since 2.8.0
the_author_meta()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
the_author_meta( string $field = '', int|false $user_id = false )
Описание
См. alsoget_the_author_meta()
Оригинал (английский)
Параметры
$field
string
необязательный
= ''
Выбирает поле записи пользователя. Список возможных полей см. в get_the_author_meta() .
$user_id
int|false
необязательный
= false
ID пользователя. По умолчанию — автор текущей записи.
Исходный код
wp-includes/author-template.php:209
function the_author_meta( $field = '', $user_id = false ) {
$author_meta = get_the_author_meta( $field, $user_id );
/**
* Filters the value of the requested user metadata.
*
* The filter name is dynamic and depends on the $field parameter of the function.
*
* @since 2.8.0
*
* @param string $author_meta The value of the metadata.
* @param int|false $user_id The user ID.
*/
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
}
История изменений
| Версия | Описание |
|---|---|
| 2.8.0 | Introduced. |

