wppaste
WordPress

apply_filters( 'wp_get_archives_args', \array<string, )

Since
7.0.0
Filters the arguments for displaying archive links.

Compatibility

WordPress
since 7.0.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in 2 of the 5 tracked releases, added in 7.0.0.

Parameters

\array<string,
string|int|bool> $args Arguments.

Where this hook fires · 1

  • wp-includes/general-template.php:2235wp_get_archives()

Source code

	 * @since 7.0.0	 *	 * @see wp_get_archives()	 *	 * @param array<string, string|int|bool> $args Arguments.	 */	$args = apply_filters( 'wp_get_archives_args', $args ); 	$parsed_args = wp_parse_args( $args, $defaults ); 	$post_type_object = get_post_type_object( $parsed_args['post_type'] );	if ( ! is_post_type_viewable( $post_type_object ) ) {		return;

Changelog

Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.

  1. 7.0.4
  2. 7.1.0

Signature, return type and hooks compared across 2 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.