WC_Gateway_Paypal::admin_options()publicWC 1.0.0

Admin Panel Options.

  • Options for bits like 'title' and availability on a country-by-country basis.

Method of the class: WC_Gateway_Paypal{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Gateway_Paypal = new WC_Gateway_Paypal();
$WC_Gateway_Paypal->admin_options();

Changelog

Since 1.0.0 Introduced.

WC_Gateway_Paypal::admin_options() code WC 8.7.0

<?php
public function admin_options() {
	if ( $this->is_valid_for_use() ) {
		parent::admin_options();
	} else {
		?>
		<div class="inline error">
			<p>
				<strong><?php esc_html_e( 'Gateway disabled', 'woocommerce' ); ?></strong>: <?php esc_html_e( 'PayPal Standard does not support your store currency.', 'woocommerce' ); ?>
			</p>
		</div>
		<?php
	}
}