wpcf7_contact_form()CF7 1.0

Wrapper function of WPCF7_ContactForm::get_instance().

Хуков нет.

Возвращает

WPCF7_ContactForm|null. Contact form object. Null if unset.

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

wpcf7_contact_form( $post );
$post(WPCF7_ContactForm|WP_Post|int) (обязательный)
Object or post ID.

Код wpcf7_contact_form() CF7 5.9.7

function wpcf7_contact_form( $post ) {
	return WPCF7_ContactForm::get_instance( $post );
}