wp-includes/functions.php:7399Tests if the supplied date is valid for the Gregorian calendar.
$monthint$dayint$yearint$source_datestringboolOne hook fires while wp_checkdate() runs, in this order:
Filters whether the given date is valid for the Gregorian calendar.
function wp_checkdate( $month, $day, $year, $source_date ) { $checkdate = false; if ( is_numeric( $month ) && is_numeric( $day ) && is_numeric( $year ) ) { $checkdate = checkdate( (int) $month, (int) $day, (int) $year ); } /** * Filters whether the given date is valid for the Gregorian calendar. * * @since 3.5.0 * * @param bool $checkdate Whether the given date is valid. * @param string $source_date Date to check. */ return apply_filters( 'wp_checkdate', $checkdate, $source_date );}Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.