Automattic\WooCommerce\Internal\Admin\Settings
PaymentProviders::get_extension_suggestion_categories()
Get the payment extension suggestions categories details.
Метод класса: PaymentProviders{}
Хуков нет.
Возвращает
Массив
. The payment extension suggestions categories.
Использование
$PaymentProviders = new PaymentProviders(); $PaymentProviders->get_extension_suggestion_categories(): array;
Код PaymentProviders::get_extension_suggestion_categories() PaymentProviders::get extension suggestion categories WC 9.6.1
public function get_extension_suggestion_categories(): array { $categories = array(); $categories[] = array( 'id' => self::CATEGORY_EXPRESS_CHECKOUT, '_priority' => 10, 'title' => esc_html__( 'Express Checkouts', 'woocommerce' ), 'description' => esc_html__( 'Allow shoppers to fast-track the checkout process with express options like Apple Pay and Google Pay.', 'woocommerce' ), ); $categories[] = array( 'id' => self::CATEGORY_BNPL, '_priority' => 20, 'title' => esc_html__( 'Buy Now, Pay Later', 'woocommerce' ), 'description' => esc_html__( 'Offer flexible payment options to your shoppers.', 'woocommerce' ), ); $categories[] = array( 'id' => self::CATEGORY_PSP, '_priority' => 30, 'title' => esc_html__( 'Payment Providers', 'woocommerce' ), 'description' => esc_html__( 'Give your shoppers additional ways to pay.', 'woocommerce' ), ); return $categories; }