getarchives_where WordPress Filter Hook
The getarchives_where Wordpress hook is used to alter the SQL query used to retrieve the list of posts for an archive page. This can be useful for modifying the list of posts displayed on an archive page, or for adding custom filters to an archive page.
apply_filters( 'getarchives_where', string $sql_where , array $parsed_args ) #
Filters the SQL WHERE clause for retrieving archives.
Parameters
- $sql_where
(string)Portion of SQL query containing the WHERE clause.
- $parsed_args
(array)An array of default arguments.
Source
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |