apply_filters( 'getarchives_where', string $sql_where , array $parsed_args )
Filters the SQL WHERE clause for retrieving archives.
Description Description
Parameters Parameters
- $sql_where
-
(string) Portion of SQL query containing the WHERE clause.
- $parsed_args
-
(array) An array of default arguments.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |
User Contributed Notes 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:
Expand full source codeCollapse full source code
Read http://wpsocket.com/wpref/function/wp_get_archives/ to see what it should be work together.