WPCF7_ConstantContact::display_setup()privateCF7 1.0

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->display_setup();

Код WPCF7_ConstantContact::display_setup() CF7 5.9.3

<?php
private function display_setup() {
?>
<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=setup' ) ); ?>">
<?php wp_nonce_field( 'wpcf7-constant-contact-setup' ); ?>
<table class="form-table">
<tbody>
<tr>
<th scope="row"><label for="client_id"><?php echo esc_html( __( 'API Key', 'contact-form-7' ) ); ?></label></th>
<td><?php
	if ( $this->is_active() ) {
		echo esc_html( $this->client_id );
		echo sprintf(
			'<input type="hidden" value="%1$s" id="client_id" name="client_id" />',
			esc_attr( $this->client_id )
		);
	} else {
		echo sprintf(
			'<input type="text" aria-required="true" value="%1$s" id="client_id" name="client_id" class="regular-text code" />',
			esc_attr( $this->client_id )
		);
	}
?></td>
</tr>
<tr>
<th scope="row"><label for="client_secret"><?php echo esc_html( __( 'App Secret', 'contact-form-7' ) ); ?></label></th>
<td><?php
	if ( $this->is_active() ) {
		echo esc_html( wpcf7_mask_password( $this->client_secret, 4, 4 ) );
		echo sprintf(
			'<input type="hidden" value="%1$s" id="client_secret" name="client_secret" />',
			esc_attr( $this->client_secret )
		);
	} else {
		echo sprintf(
			'<input type="text" aria-required="true" value="%1$s" id="client_secret" name="client_secret" class="regular-text code" />',
			esc_attr( $this->client_secret )
		);
	}
?></td>
</tr>
<tr>
<th scope="row"><label for="redirect_uri"><?php echo esc_html( __( 'Redirect URI', 'contact-form-7' ) ); ?></label></th>
<td><?php
	echo sprintf(
		'<input type="text" value="%1$s" id="redirect_uri" name="redirect_uri" class="large-text code" readonly="readonly" onfocus="this.select();" style="font-size: 11px;" />',
		$this->get_redirect_uri()
	);
?>
<p class="description"><?php echo esc_html( __( "Set this URL as the redirect URI.", 'contact-form-7' ) ); ?></p>
</td>
</tr>
</tbody>
</table>
<?php
	if ( $this->is_active() ) {
		submit_button(
			_x( 'Reset Keys', 'API keys', 'contact-form-7' ),
			'small', 'reset'
		);
	} else {
		submit_button(
			__( 'Connect to the Constant Contact API', 'contact-form-7' )
		);
	}
?>
</form>
<?php
}