wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_checkdate › WordPress Function

Seit3.5.0
Veraltetn/v
wp_checkdate ( $month, $day, $year, $source_date )
Parameter: (4)
  • (int) $month Month number.
    Erforderlich: Ja
  • (int) $day Day number.
    Erforderlich: Ja
  • (int) $year Year number.
    Erforderlich: Ja
  • (string) $source_date The date to filter.
    Erforderlich: Ja
Links:
Gibt zurück:
  • (bool) True if valid date, false if not valid date.
Definiert in:
Codex:

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



Quellcode

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 );
}