This function has been deprecated. Use wp_get_archives() instead.
get_archives( string $type = '', string $limit = '', string $format = 'html', string $before = '', string $after = '', bool $show_post_count = false )
Retrieves a list of archives.
Description
See also
Parameters
- $type
-
(Optional)
Default value: ''
- $limit
-
(Optional)
Default value: ''
- $format
-
(Optional)
Default value: 'html'
- $before
-
(Optional)
Default value: ''
- $after
-
(Optional)
Default value: ''
- $show_post_count
-
(Optional)
Default value: false
Return
(string|null)
Source
File: wp-includes/deprecated.php
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
_deprecated_function( __FUNCTION__, 'WP-2.1.0', 'wp_get_archives()' );
$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
return wp_get_archives($args);
}
Changelog
Version | Description |
---|---|
2.1.0 | Use wp_get_archives() |
0.71 | Introduced. This function has been deprecated. Use wp_get_archives() instead. |