WC_Settings_Payment_Gateways::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Settings_Payment_Gateways{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Settings_Payment_Gateways::__construct() code WC 8.6.1

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();
}