WC_Settings_Payment_Gateways::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Settings_Payment_Gateways = new WC_Settings_Payment_Gateways();
$WC_Settings_Payment_Gateways->__construct();

Код WC_Settings_Payment_Gateways::__construct() WC 7.3.0

public function __construct() {
	$this->id    = 'checkout'; // @todo In future versions this may make more sense as 'payment' however to avoid breakage lets leave this alone until we refactor settings APIs in general.
	$this->label = _x( 'Payments', 'Settings tab label', 'woocommerce' );

	add_action( 'woocommerce_admin_field_payment_gateways_banner', array( $this, 'payment_gateways_banner' ) );
	add_action( 'woocommerce_admin_field_payment_gateways', array( $this, 'payment_gateways_setting' ) );
	parent::__construct();
}