Automattic\WooCommerce\Internal\Admin\WCPayPromotion
Init::possibly_register_pre_install_wc_pay_promotion_gateway()
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() Init::possibly register pre install wc pay promotion gateway WC 8.7.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; }