WPCF7_ConstantContact::display()publicCF7 1.0

Метод класса: WPCF7_ConstantContact{}

Хуков нет.

Возвращает

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

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

$WPCF7_ConstantContact = new WPCF7_ConstantContact();
$WPCF7_ConstantContact->display( $action );
$action **
-
По умолчанию: ''

Код WPCF7_ConstantContact::display() CF7 5.9.8

public function display( $action = '' ) {
	echo sprintf(
		'<p><strong>%1$s</strong> %2$s</p>',
		esc_html( __( 'Warning:', 'contact-form-7' ) ),
		wpcf7_link(
			__( 'https://contactform7.com/2024/02/02/we-end-the-constant-contact-integration/', 'contact-form-7' ),
			__( "This feature is deprecated. You are not recommended to use it.", 'contact-form-7' )
		)
	);

	echo sprintf(
		'<p>%s</p>',
		esc_html( __( "The Constant Contact integration module allows you to send contact data collected through your contact forms to the Constant Contact API. You can create reliable email subscription services in a few easy steps.", 'contact-form-7' ) )
	);

	echo sprintf(
		'<p><strong>%s</strong></p>',
		wpcf7_link(
			__( 'https://contactform7.com/constant-contact-integration/', 'contact-form-7' ),
			__( 'Constant Contact integration', 'contact-form-7' )
		)
	);

	if ( $this->is_active() ) {
		echo sprintf(
			'<p class="dashicons-before dashicons-yes">%s</p>',
			esc_html( __( "This site is connected to the Constant Contact API.", 'contact-form-7' ) )
		);
	}

	if ( 'setup' == $action ) {
		$this->display_setup();
	} else {
		echo sprintf(
			'<p><a href="%1$s" class="button">%2$s</a></p>',
			esc_url( $this->menu_page_url( 'action=setup' ) ),
			esc_html( __( 'Setup Integration', 'contact-form-7' ) )
		);
	}
}