getarchives_where WordPress Filter Hook

The getarchives_where Wordpress hook is used to alter the SQL query used to retrieve the list of posts for an archive page. This can be useful for modifying the list of posts displayed on an archive page, or for adding custom filters to an archive page.

apply_filters( 'getarchives_where', string $sql_where, array $parsed_args ) #

Filters the SQL WHERE clause for retrieving archives.


Parameters

$sql_where

(string)Portion of SQL query containing the WHERE clause.

$parsed_args

(array)An array of default arguments.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More