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
File: wp-includes/general-template.php
.
View all references
$where = apply_filters( 'getarchives_where', $sql_where, $parsed_args );
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
The example of modifying a current query and add your own category id to filter:
Read https://developer.wordpress.org/reference/functions/wp_get_archives/ to see what it should be work together.