WPCF7_Stripe::display()publicCF7 1.0

{} Это метод класса: WPCF7_Stripe{}

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPCF7_Stripe::display() CF7 5.6.3

public function display( $action = '' ) {
	// https://stripe.com/docs/partners/support#intro
	echo '<p>' . sprintf(
		esc_html( __( 'Stripe is a simple and powerful way to accept payments online. Stripe has no setup fees, no monthly fees, and no hidden costs. Millions of businesses rely on Stripe’s software tools to accept payments securely and expand globally. For details, see %s.', 'contact-form-7' ) ),
		wpcf7_link(
			__( 'https://contactform7.com/stripe-integration/', 'contact-form-7' ),
			__( 'Stripe integration', 'contact-form-7' )
		)
	) . '</p>';

	if ( $this->is_active() ) {
		echo sprintf(
			'<p class="dashicons-before dashicons-yes">%s</p>',
			esc_html( __( "Stripe is active on this site.", 'contact-form-7' ) )
		);
	}

	if ( 'setup' == $action ) {
		$this->display_setup();
	} elseif ( is_ssl() or WP_DEBUG ) {
		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' ) )
		);
	} else {
		echo sprintf(
			'<p class="dashicons-before dashicons-warning">%s</p>',
			esc_html( __( "Stripe is not available on this site. It requires an HTTPS-enabled site.", 'contact-form-7' ) )
		);
	}
}