get_archives()
Устарела с версии 2.1.0. Больше не поддерживается и может быть удалена. Используйте wp_get_archives().
Retrieves a list of archives.
Хуков нет.
Возвращает
Строку|null
.
Использование
get_archives( $type, $limit, $format, $before, $after, $show_post_count );
- $type(строка)
- -
По умолчанию: '' - $limit(строка)
- -
По умолчанию: '' - $format(строка)
- -
По умолчанию: 'html' - $before(строка)
- -
По умолчанию: '' - $after(строка)
- -
По умолчанию: '' - $show_post_count(true|false)
- -
По умолчанию: false
Заметки
- Смотрите: wp_get_archives()
Список изменений
С версии 0.71 | Введена. |
Устарела с 2.1.0 | Use wp_get_archives() |
Код get_archives() get archives WP 6.7.2
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { _deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' ); $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); return wp_get_archives($args); }