WPCF7_ContactForm::__get
Magic method for property overloading.
Метод класса: WPCF7_ContactForm{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WPCF7_ContactForm = new WPCF7_ContactForm(); $WPCF7_ContactForm->__get( $name );
- $name(обязательный)
- .
Код WPCF7_ContactForm::__get() WPCF7 ContactForm:: get CF7 6.1.6
public function __get( $name ) {
/* translators: 1: property name, 2: method name */
$message = __( '<code>%1$s</code> property of a <code>WPCF7_ContactForm</code> object is <strong>no longer accessible</strong>. Use <code>%2$s</code> method instead.', 'contact-form-7' );
if ( 'id' === $name ) {
wp_trigger_error(
'',
sprintf( $message, 'id', 'id()' ),
E_USER_DEPRECATED
);
return $this->id;
} elseif ( 'title' === $name ) {
wp_trigger_error(
'',
sprintf( $message, 'title', 'title()' ),
E_USER_DEPRECATED
);
return $this->title;
} elseif ( $prop = $this->prop( $name ) ) {
wp_trigger_error(
'',
sprintf( $message, $name, 'prop(\'' . $name . '\')' ),
E_USER_DEPRECATED
);
return $prop;
}
}