WPCF7_ContactForm::get_instance()
Returns an instance of WPCF7_ContactForm.
Метод класса: WPCF7_ContactForm{}
Хуков нет.
Возвращает
WPCF7_ContactForm
. A new contact form object.
Использование
$result = WPCF7_ContactForm::get_instance( $post );
- $post (обязательный)
- -
Код WPCF7_ContactForm::get_instance() WPCF7 ContactForm::get instance CF7 5.7.3
public static function get_instance( $post ) { $post = get_post( $post ); if ( ! $post or self::post_type != get_post_type( $post ) ) { return false; } return self::$current = new self( $post ); }