Title: wp_get_archives_args
Published: May 20, 2026

---

# apply_filters( ‘wp_get_archives_args’, array<string,  )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#wp--skip-link--target)

Filters the arguments for displaying archive links.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#see-also)󠁿

 * [wp_get_archives()](https://developer.wordpress.org/reference/functions/wp_get_archives/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#parameters)󠁿

`string|int|bool`> $args Arguments.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#source)󠁿

    ```php
    $args = apply_filters( 'wp_get_archives_args', $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/general-template.php#L2030)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/general-template.php#L2030-L2030)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_get_archives()](https://developer.wordpress.org/reference/functions/wp_get_archives/)`wp-includes/general-template.php` |

Displays archive links based on type and format.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_get_archives_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.0.0](https://developer.wordpress.org/reference/since/7.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_get_archives_args%2F)
before being able to contribute a note or feedback.