W3cubDocs

/WordPress

apply_filters( ‘wp_checkdate’, bool $checkdate, string $source_date )

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

Parameters

$checkdatebool
Whether the given date is valid.
$source_datestring
Date to check.

Source

return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );

Changelog

Version Description
3.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_checkdate