WPCF7_ConfigValidator::__construct()publicCF7 1.0

Constructor.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WPCF7_ConfigValidator = new WPCF7_ConfigValidator();
$WPCF7_ConfigValidator->__construct( $contact_form, $args );
$contact_form(WPCF7_ContactForm) (обязательный)
-
$args **
-
По умолчанию: ''

Код WPCF7_ConfigValidator::__construct() CF7 5.9.3

public function __construct( WPCF7_ContactForm $contact_form, $args = '' ) {
	$args = wp_parse_args( $args, array(
		'include' => null,
		'exclude' => null,
	) );

	$this->contact_form = $contact_form;

	if ( isset( $args['include'] ) ) {
		$this->include = (array) $args['include'];
	}

	if ( isset( $args['exclude'] ) ) {
		$this->exclude = (array) $args['exclude'];
	}
}