get_date_sql WordPress Filter Hook

The get_date_sql WordPress hook is used to retrieve the SQL code that is used to generate the date information for a given WordPress post. This hook is typically used by plugins and themes that need to customize the way the date information is displayed on a WordPress post.

apply_filters( 'get_date_sql', string $where, WP_Date_Query $query ) #

Filters the date query WHERE clause.


Parameters

$where

(string)WHERE clause of the date query.

$query

(WP_Date_Query)The WP_Date_Query instance.


Top ↑

Source

File: wp-includes/class-wp-date-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.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.