Title: wp_checkdate
Published: April 25, 2014
Last modified: February 24, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#parameters)󠁿

 `$checkdate`bool

Whether the given date is valid.

`$source_date`string

Date to check.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'wp_checkdate', $checkdate, $source_date );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/functions.php#L7413)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L7413-L7413)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_checkdate()](https://developer.wordpress.org/reference/functions/wp_checkdate/)`wp-includes/functions.php` |

Tests if the supplied date is valid for the Gregorian calendar.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_checkdate/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_checkdate%2F)
before being able to contribute a note or feedback.