getarchives_where filter-hook . WP 2.2.0
Filters the SQL WHERE clause for retrieving archives.
Usage
add_filter( 'getarchives_where', 'filter_function_name_6200', 10, 2 ); function filter_function_name_6200( $sql_where, $parsed_args ){ // filter... return $sql_where; }
- $sql_where(string)
- Portion of SQL query containing the WHERE clause.
- $parsed_args(array)
- An array of default arguments.
Changelog
Since 2.2.0 | Introduced. |
Where the hook is called
wp-includes/general-template.php 1992
$where = apply_filters( 'getarchives_where', $sql_where, $parsed_args );