wp_checkdate

The timeline below displays how wordpress function wp_checkdate has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Tests if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://www.php.net/manual/en/function.checkdate.php
 *
 * @param int    $month       Month number.
 * @param int    $day         Day number.
 * @param int    $year        Year number.
 * @param string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 5.5

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://www.php.net/manual/en/function.checkdate.php
 *
 * @param int    $month       Month number.
 * @param int    $day         Day number.
 * @param int    $year        Year number.
 * @param string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 5.4

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://www.php.net/manual/en/function.checkdate.php
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 9.9

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://secure.php.net/manual/en/function.checkdate.php
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 9.3

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @see checkdate()
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: .20

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://secure.php.net/manual/en/function.checkdate.php
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 9.2

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @see checkdate()
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: .10

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @link https://secure.php.net/manual/en/function.checkdate.php
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 4.6

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @see checkdate()
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
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);
}

WordPress Version: 4.0

/**
 * Test if the supplied date is valid for the Gregorian calendar.
 *
 * @since 3.5.0
 *
 * @see checkdate()
 *
 * @param  int    $month       Month number.
 * @param  int    $day         Day number.
 * @param  int    $year        Year number.
 * @param  string $source_date The date to filter.
 * @return bool True if valid date, false if not valid date.
 */
function wp_checkdate($month, $day, $year, $source_date)
{
    /**
     * Filter 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);
}

WordPress Version: 3.9

/**
 * Test if the supplied date is valid for the Gregorian calendar
 *
 * @since 3.5.0
 *
 * @return bool true|false
 */
function wp_checkdate($month, $day, $year, $source_date)
{
    /**
     * Filter 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);
}

WordPress Version: 3.7

/**
 * Test if the supplied date is valid for the Gregorian calendar
 *
 * @since 3.5.0
 *
 * @return bool true|false
 */
function wp_checkdate($month, $day, $year, $source_date)
{
    return apply_filters('wp_checkdate', checkdate($month, $day, $year), $source_date);
}