Make WordPress Core


Ignore:
Timestamp:
11/30/2025 05:39:27 PM (3 months ago)
Author:
westonruter
Message:

General: Add wp_get_archives_args filter to wp_get_archives().

Developed in https://github.com/WordPress/wordpress-develop/pull/10552

Props jeherve, westonruter.
Fixes #64304.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r61198 r61326  
    20192019    );
    20202020
     2021    /**
     2022     * Filters the arguments for displaying archive links.
     2023     *
     2024     * @since 7.0.0
     2025     *
     2026     * @see wp_get_archives()
     2027     *
     2028     * @param array<string, string|int|bool> $args Arguments.
     2029     */
     2030    $args = apply_filters( 'wp_get_archives_args', $args );
     2031
    20212032    $parsed_args = wp_parse_args( $args, $defaults );
    20222033
Note: See TracChangeset for help on using the changeset viewer.