WPCF7_ContactForm::is_true()publicCF7 1.0

Returns true if the specified setting has a truthy string value.

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

Хуков нет.

Возвращает

true|false. True if the setting value is 'on', 'true', or '1'.

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

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->is_true( $name );
$name(строка) (обязательный)
Name of setting.

Код WPCF7_ContactForm::is_true() CF7 5.9.3

public function is_true( $name ) {
	return in_array(
		$this->pref( $name ),
		array( 'on', 'true', '1' ),
		true
	);
}