Automattic\WooCommerce\Internal\Admin\WCPayPromotion

Init::possibly_register_pre_install_wc_pay_promotion_gateway()public staticWC 1.0

Possibly registers the pre install wc pay promoted gateway.

Method of the class: Init{}

No Hooks.

Return

Array. list of gateway classes.

Usage

$result = Init::possibly_register_pre_install_wc_pay_promotion_gateway( $gateways );
$gateways(array) (required)
list of gateway classes.

Init::possibly_register_pre_install_wc_pay_promotion_gateway() code WC 7.1.0

public static function possibly_register_pre_install_wc_pay_promotion_gateway( $gateways ) {
	if ( self::can_show_promotion() && ! WCPaymentGatewayPreInstallWCPayPromotion::is_dismissed() ) {
		$gateways[] = 'Automattic\WooCommerce\Internal\Admin\WCPayPromotion\WCPaymentGatewayPreInstallWCPayPromotion';
	}
	return $gateways;
}