wpcf7_register_post_types()CF7 1.0

Registers post types used for this plugin.

Хуков нет.

Возвращает

null. Ничего (null).

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

wpcf7_register_post_types();

Код wpcf7_register_post_types() CF7 5.9.3

function wpcf7_register_post_types() {
	if ( class_exists( 'WPCF7_ContactForm' ) ) {
		WPCF7_ContactForm::register_post_type();
		return true;
	} else {
		return false;
	}
}