wp_checkdate
函数
wp_checkdate ( $month, $day, $year, $source_date )
- 参数
-
-
(int)
$month
Month number.- Required: 是
-
(int)
$day
Day number.- Required: 是
-
(int)
$year
Year number.- Required: 是
-
(string)
$source_date
The date to filter.- Required: 是
-
(int)
- 返回值
-
- (bool) True if valid date, false if not valid date.
- 定义位置
-
-
wp-includes/functions.php
, line 7053
-
wp-includes/functions.php
- 引入
- 3.5.0
- 弃用
- –
Tests if the supplied date is valid for the Gregorian calendar.
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 ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。