wpcf7_get_current_contact_form()CF7 1.0

Хуков нет.

Возвращает

WPCF7_ContactForm. Contact form object.

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

wpcf7_get_current_contact_form();

Код wpcf7_get_current_contact_form() CF7 5.6.4

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