WPCF7_ContactForm::shortcode_attr
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() WPCF7 ContactForm::shortcode attr CF7 6.1.4
public function shortcode_attr( $name ) {
if ( isset( $this->shortcode_atts[$name] ) ) {
return (string) $this->shortcode_atts[$name];
}
}