get_the_author_ID()
Устарела с версии 2.8.0. Больше не поддерживается и может быть удалена. Используйте get_the_author_meta().
Retrieve the ID of the author of the current post.
Хуков нет.
Возвращает
Строку|int. The author's ID.
Использование
get_the_author_ID();
Заметки
- Смотрите: get_the_author_meta()
Список изменений
| С версии 1.5.0 | Введена. |
| Устарела с 2.8.0 | Use get_the_author_meta() |
Код get_the_author_ID() get the author ID WP 6.9.1
function get_the_author_ID() {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta(\'ID\')' );
return get_the_author_meta('ID');
}