WPCF7_ContactForm::is_true
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() WPCF7 ContactForm::is true CF7 6.1.4
public function is_true( $name ) {
return in_array(
$this->pref( $name ),
array( 'on', 'true', '1' ),
true
);
}