функция
since 1.5.0
get_the_author_posts()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_the_author_posts(): int
Описание
Получает количество записей автора текущей записи.
Возвращаемое значение
int
Исходный код
wp-includes/author-template.php:298
function get_the_author_posts() {
$post = get_post();
if ( ! $post ) {
return 0;
}
return (int) count_user_posts( $post->post_author, $post->post_type );
}
История изменений
| Версия | Описание |
|---|---|
| 1.5.0 | Introduced. |

