getarchives_join filter-hookWP 2.2.0

Filters the SQL JOIN clause for retrieving archives.

Usage

add_filter( 'getarchives_join', 'wp_kama_getarchives_join_filter', 10, 2 );

/**
 * Function for `getarchives_join` filter-hook.
 * 
 * @param string $sql_join    Portion of SQL query containing JOIN clause.
 * @param array  $parsed_args An array of default arguments.
 *
 * @return string
 */
function wp_kama_getarchives_join_filter( $sql_join, $parsed_args ){

	// filter...
	return $sql_join;
}
$sql_join(string)
Portion of SQL query containing JOIN clause.
$parsed_args(array)
An array of default arguments.

Changelog

Since 2.2.0 Introduced.

Where the hook is called

wp_get_archives()
getarchives_join
wp-includes/general-template.php 2047
$join = apply_filters( 'getarchives_join', '', $parsed_args );

Where the hook is used in WordPress

Usage not found.