get_archives()

最后更新于:2021-11-26 04:15:02

get_archives( string$type=”, string$limit=”, string$format=’html’, string$before=”, string$after=”, bool$show_post_count=false)

Retrieves a list of archives.

参数

$type

(string) (Optional)

Default value: ”

$limit

(string) (Optional)

Default value: ”

$format

(string) (Optional)

Default value: ‘html’

$before

(string) (Optional)

Default value: ”

$after

(string) (Optional)

Default value: ”

$show_post_count

(bool) (Optional)

Default value: false

响应

(string|null)

源文件

文件: gc-includes/deprecated.php

function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'gc_get_archives()' );
	$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
	return gc_get_archives($args);
}