Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_checkdate | Filters whether the given date is valid for the Gregorian calendar. |
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Test if the supplied date is valid for the Gregorian calendar.
(int) (Required) Month number.
(int) (Required) Day number.
(int) (Required) Year number.
(string) (Required) The date to filter.
(bool) True if valid date, false if not valid date.
File: wp-includes/functions.php
function wp_checkdate( $month, $day, $year, $source_date ) { /** * 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( $month, $day, $year ), $source_date ); }
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_checkdate