Automattic\WooCommerce\Internal\Admin\WCPayPromotion
DefaultPromotions::get_all()
Get the specs.
Method of the class: DefaultPromotions{}
No Hooks.
Return
Array
. Suggestion specs.
Usage
$result = DefaultPromotions::get_all(): array;
DefaultPromotions::get_all() DefaultPromotions::get all code WC 9.3.3
public static function get_all(): array { return array( array( 'id' => 'woocommerce_payments:woopay', 'title' => __( 'WooPayments', 'woocommerce' ), 'content' => __( 'Payments made simple — including WooPay, a new express checkout feature.', 'woocommerce' ), 'image' => plugins_url( 'assets/images/onboarding/wcpay.svg', WC_PLUGIN_FILE ), 'plugins' => array( 'woocommerce-payments' ), 'is_visible' => array( DefaultPaymentGateways::get_rules_for_cbd( false ), DefaultPaymentGateways::get_rules_for_countries( self::get_woopay_available_countries() ), ), 'sub_title' => self::get_wcpay_payment_icons(), ), array( 'id' => 'woocommerce_payments', 'title' => __( 'WooPayments', 'woocommerce' ), 'content' => __( 'Payments made simple, with no monthly fees – designed exclusively for WooCommerce stores. Accept credit cards, debit cards, and other popular payment methods.', 'woocommerce' ), 'image' => plugins_url( 'assets/images/onboarding/wcpay.svg', WC_PLUGIN_FILE ), 'plugins' => array( 'woocommerce-payments' ), 'is_visible' => array( DefaultPaymentGateways::get_rules_for_cbd( false ), DefaultPaymentGateways::get_rules_for_countries( DefaultPaymentGateways::get_wcpay_countries() ), ), 'sub_title' => self::get_wcpay_payment_icons(), ), ); }