WPCF7_ContactForm::locale
Returns the locale code of this contact form.
Метод класса: WPCF7_ContactForm{}
Хуков нет.
Возвращает
string. Locale code. Empty string if no valid locale is set.
Использование
$WPCF7_ContactForm = new WPCF7_ContactForm(); $WPCF7_ContactForm->locale();
Код WPCF7_ContactForm::locale() WPCF7 ContactForm::locale CF7 6.1.7
public function locale() {
if ( wpcf7_is_valid_locale( $this->locale ) ) {
return $this->locale;
} else {
return '';
}
}