WPCF7_Submission::get_instance
Returns the singleton instance of this class.
Метод класса: WPCF7_Submission{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WPCF7_Submission::get_instance( $contact_form, $options );
- $contact_form
- .
По умолчанию:null - $options
- .
По умолчанию:''
Код WPCF7_Submission::get_instance() WPCF7 Submission::get instance CF7 6.1.6
public static function get_instance( $contact_form = null, $options = '' ) {
if ( $contact_form instanceof WPCF7_ContactForm ) {
if ( empty( self::$instance ) ) {
self::$instance = new self( $contact_form, $options );
self::$instance->proceed();
return self::$instance;
} else {
return null;
}
} else {
if ( empty( self::$instance ) ) {
return null;
} else {
return self::$instance;
}
}
}