WPCF7_SWV_CompositeRule::to_array()publicCF7 1.0

Converts the properties to an array.

{} Это метод класса: WPCF7_SWV_CompositeRule{}

Хуков нет.

Возвращает

Массив. Array of properties.

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

$WPCF7_SWV_CompositeRule = new WPCF7_SWV_CompositeRule();
$WPCF7_SWV_CompositeRule->to_array();

Код WPCF7_SWV_CompositeRule::to_array() CF7 5.6.3

public function to_array() {
	$rules_arrays = array_map(
		function ( $rule ) {
			return $rule->to_array();
		},
		$this->rules
	);

	return array_merge(
		parent::to_array(),
		array(
			'rules' => $rules_arrays,
		)
	);
}