функция
Устаревший since 0.71
get_archives()
Устаревшее.
Помечено устаревшим с версии 2.1.0.
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_archives( string $type = '', string $limit = '', string $format = 'html', string $before = '', string $after = '', bool $show_post_count = false ): string|null
Описание
См. alsowp_get_archives()
Оригинал (английский)
Параметры
$type
string
необязательный
= ''
Default:''
$limit
string
необязательный
= ''
Default:''
$format
string
необязательный
= 'html'
Значение по умолчанию: 'html'
$before
string
необязательный
= ''
Default:''
$after
string
необязательный
= ''
Default:''
$show_post_count
bool
необязательный
= false
Значение по умолчанию: false
Возвращаемое значение
string|null
Исходный код
wp-includes/deprecated.php:789
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);
}
История изменений
| Версия | Описание |
|---|---|
| 2.1.0 | Deprecated. Use wp_get_archives() |
| 0.71 | Introduced. |

