WPCF7_ContactForm::shortcode_attr()publicCF7 1.0

Returns the specified shortcode attribute value.

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

Хуков нет.

Возвращает

Строку|null. Attribute value. Null if the attribute does not exist.

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

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->shortcode_attr( $name );
$name(строка) (обязательный)
Shortcode attribute name.

Код WPCF7_ContactForm::shortcode_attr() CF7 5.9.3

public function shortcode_attr( $name ) {
	if ( isset( $this->shortcode_atts[$name] ) ) {
		return (string) $this->shortcode_atts[$name];
	}
}