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.

{} Это метод класса: Init{}

Хуков нет.

Возвращает

Массив. list of gateway classes.

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

$result = Init::possibly_register_pre_install_wc_pay_promotion_gateway( $gateways );
$gateways(массив) (обязательный)
list of gateway classes.

Код Init::possibly_register_pre_install_wc_pay_promotion_gateway() 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;
}