getarchives_where filter-hookWP 2.2.0

Filters the SQL WHERE clause for retrieving archives.

Usage

add_filter( 'getarchives_where', 'wp_kama_getarchives_where_filter', 10, 2 );

/**
 * Function for `getarchives_where` filter-hook.
 * 
 * @param string $sql_where   Portion of SQL query containing the WHERE clause.
 * @param array  $parsed_args An array of default arguments.
 *
 * @return string
 */
function wp_kama_getarchives_where_filter( $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_get_archives()
getarchives_where
wp-includes/general-template.php 2029
$where = apply_filters( 'getarchives_where', $sql_where, $parsed_args );

Where the hook is used in WordPress

Usage not found.