wp_checkdate filter-hook . WP 3.5.0
Filters whether the given date is valid for the Gregorian calendar.
Usage
add_filter( 'wp_checkdate', 'filter_function_name_3765', 10, 2 ); function filter_function_name_3765( $checkdate, $source_date ){ // filter... return $checkdate; }
- $checkdate(true/false)
- Whether the given date is valid.
- $source_date(string)
- Date to check.
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
wp_checkdate
wp-includes/functions.php 6551
return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );