WC_Gateway_BACS::get_country_locale()publicWC 1.0

Get country locale if localized.

Method of the class: WC_Gateway_BACS{}

Hooks from the method

Return

Array.

Usage

$WC_Gateway_BACS = new WC_Gateway_BACS();
$WC_Gateway_BACS->get_country_locale();

WC_Gateway_BACS::get_country_locale() code WC 9.4.2

public function get_country_locale() {

	if ( empty( $this->locale ) ) {

		// Locale information to be used - only those that are not 'Sort Code'.
		$this->locale = apply_filters(
			'woocommerce_get_bacs_locale',
			array(
				'AU' => array(
					'sortcode' => array(
						'label' => __( 'BSB', 'woocommerce' ),
					),
				),
				'CA' => array(
					'sortcode' => array(
						'label' => __( 'Bank transit number', 'woocommerce' ),
					),
				),
				'IN' => array(
					'sortcode' => array(
						'label' => __( 'IFSC', 'woocommerce' ),
					),
				),
				'IT' => array(
					'sortcode' => array(
						'label' => __( 'Branch sort', 'woocommerce' ),
					),
				),
				'NZ' => array(
					'sortcode' => array(
						'label' => __( 'Bank code', 'woocommerce' ),
					),
				),
				'SE' => array(
					'sortcode' => array(
						'label' => __( 'Bank code', 'woocommerce' ),
					),
				),
				'US' => array(
					'sortcode' => array(
						'label' => __( 'Routing number', 'woocommerce' ),
					),
				),
				'ZA' => array(
					'sortcode' => array(
						'label' => __( 'Branch code', 'woocommerce' ),
					),
				),
			)
		);

	}

	return $this->locale;

}