Contactable\SWV
TimeRule::validate
Метод класса: TimeRule{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$TimeRule = new TimeRule(); $TimeRule->validate( $context );
- $context(обязательный)
- .
Код TimeRule::validate() TimeRule::validate CF7 6.1.5
public function validate( $context ) {
$input = $this->get_default_input();
$input = wpcf7_array_flatten( $input );
$input = wpcf7_strip_whitespaces( $input );
$input = wpcf7_exclude_blank( $input );
foreach ( $input as $i ) {
if ( ! wpcf7_is_time( $i ) ) {
return $this->create_error();
}
}
return true;
}