Contactable\SWV
Rule::create_error
Creates an error object. Returns false if the error property is omitted.
Метод класса: Rule{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->create_error();
Код Rule::create_error() Rule::create error CF7 6.1.6
protected function create_error() {
$error_code = defined( 'static::rule_name' )
? sprintf( 'swv_%s', static::rule_name )
: 'swv';
return new WP_Error(
$error_code,
(string) $this->get_property( 'error' ),
$this
);
}