wpcf7_get_current_contact_form()CF7 1.0

Wrapper function of WPCF7_ContactForm::get_current().

Хуков нет.

Возвращает

WPCF7_ContactForm. Contact form object.

Использование

wpcf7_get_current_contact_form();

Код wpcf7_get_current_contact_form() CF7 6.0

function wpcf7_get_current_contact_form() {
	if ( $current = WPCF7_ContactForm::get_current() ) {
		return $current;
	}
}