wp_checkdate хук-фильтр . WP 3.5.0
Filters whether the given date is valid for the Gregorian calendar.
Использование
add_filter( 'wp_checkdate', 'filter_function_name_5759', 10, 2 ); function filter_function_name_5759( $checkdate, $source_date ){ // filter... return $checkdate; }
- $checkdate(true/false)
- Whether the given date is valid.
- $source_date(строка)
- Date to check.
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
wp_checkdate
wp-includes/functions.php 6551
return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );