apply_filters( 'getarchives_where', string $sql_where , array $parsed_args )
Filters the SQL WHERE clause for retrieving archives.
Description
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. |
The example of modifying a current query and add your own category id to filter:
Expand full source codeCollapse full source code
Read http://wpsocket.com/wpref/function/wp_get_archives/ to see what it should be work together.