WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Payment_Gateway_ECheck::form() public WC 2.6.0

Outputs fields for entering eCheck information.

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

Возвращает

null. Ничего.

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

$WC_Payment_Gateway_ECheck = new WC_Payment_Gateway_ECheck();
$WC_Payment_Gateway_ECheck->form();

Список изменений

С версии 2.6.0 Введена.

Код WC_Payment_Gateway_ECheck::form() WC 5.7.1

<?php
public function form() {
	$fields = array();

	$default_fields = array(
		'routing-number' => '<p class="form-row form-row-first">
			<label for="' . esc_attr( $this->id ) . '-routing-number">' . esc_html__( 'Routing number', 'woocommerce' ) . '&nbsp;<span class="required">*</span></label>
			<input id="' . esc_attr( $this->id ) . '-routing-number" class="input-text wc-echeck-form-routing-number" type="text" maxlength="9" autocomplete="off" placeholder="&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;" name="' . esc_attr( $this->id ) . '-routing-number" />
		</p>',
		'account-number' => '<p class="form-row form-row-wide">
			<label for="' . esc_attr( $this->id ) . '-account-number">' . esc_html__( 'Account number', 'woocommerce' ) . '&nbsp;<span class="required">*</span></label>
			<input id="' . esc_attr( $this->id ) . '-account-number" class="input-text wc-echeck-form-account-number" type="text" autocomplete="off" name="' . esc_attr( $this->id ) . '-account-number" maxlength="17" />
		</p>',
	);

	$fields = wp_parse_args( $fields, apply_filters( 'woocommerce_echeck_form_fields', $default_fields, $this->id ) );
	?>

	<fieldset id="<?php echo esc_attr( $this->id ); ?>-cc-form" class='wc-echeck-form wc-payment-form'>
		<?php do_action( 'woocommerce_echeck_form_start', $this->id ); ?>
		<?php
		foreach ( $fields as $field ) {
			echo $field; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
		}
		?>
		<?php do_action( 'woocommerce_echeck_form_end', $this->id ); ?>
		<div class="clear"></div>
	</fieldset>
	<?php
}