WPCF7_ConfigValidator::__construct()
Constructor.
Метод класса: WPCF7_ConfigValidator{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPCF7_ConfigValidator = new WPCF7_ConfigValidator(); $WPCF7_ConfigValidator->__construct( $contact_form, $options );
- $contact_form(WPCF7_ContactForm) (обязательный)
- -
- $options **
- -
По умолчанию: ''
Код WPCF7_ConfigValidator::__construct() WPCF7 ConfigValidator:: construct CF7 5.9.8
public function __construct( WPCF7_ContactForm $contact_form, $options = '' ) { $options = wp_parse_args( $options, array( 'include' => null, 'exclude' => null, ) ); $this->contact_form = $contact_form; if ( isset( $options['include'] ) ) { $this->include = (array) $options['include']; } if ( isset( $options['exclude'] ) ) { $this->exclude = (array) $options['exclude']; } }