wp_checkdate WordPress Filter Hook

The wp_checkdate function is used to validate a date. It is used to check if a date is valid according to the Gregorian calendar. The function returns true if the date is valid, and false if the date is not valid.

apply_filters( 'wp_checkdate', bool $checkdate, string $source_date ) #

Filters whether the given date is valid for the Gregorian calendar.


Parameters

$checkdate

(bool)Whether the given date is valid.

$source_date

(string)Date to check.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

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