WC_Gateway_BACS::get_country_locale()
Get country locale if localized.
Метод класса: WC_Gateway_BACS{}
Хуки из метода
Возвращает
Массив
.
Использование
$WC_Gateway_BACS = new WC_Gateway_BACS(); $WC_Gateway_BACS->get_country_locale();
Код WC_Gateway_BACS::get_country_locale() WC Gateway BACS::get country locale WC 9.3.1
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; }