WPCF7_ContactForm::__construct()
Constructor.
Метод класса: WPCF7_ContactForm{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->__construct( $post );
- $post **
- -
По умолчанию: null
Код WPCF7_ContactForm::__construct() WPCF7 ContactForm:: construct CF7 6.0.5
private function __construct( $post = null ) { $post = get_post( $post ); if ( $post and self::post_type === get_post_type( $post ) ) { $this->id = $post->ID; $this->name = $post->post_name; $this->title = $post->post_title; $this->locale = get_post_meta( $post->ID, '_locale', true ); $this->hash = get_post_meta( $post->ID, '_hash', true ); $this->construct_properties( $post ); $this->upgrade(); } else { $this->construct_properties(); } do_action( 'wpcf7_contact_form', $this ); }