WPCF7_SWV_Schema::toArray │ public │ CF7 1.0

Returns an array that represents the rule properties.

Метод класса: WPCF7_SWV_Schema{}

Хуков нет.

Возвращает

array. Array of rule properties.

Использование

$WPCF7_SWV_Schema = new WPCF7_SWV_Schema();
$WPCF7_SWV_Schema->toArray(): array;

Код WPCF7_SWV_Schema::toArray() CF7 6.2.4.1

public function toArray(): array {
	$rules_arrays = array_map( static function ( $item ) {
		return $item->toArray();
	}, $this->rules() );

	return array(
		'version' => self::version,
		'locale' => $this->locale,
		'rules' => $rules_arrays,
	);
}