Automattic\WooCommerce\Blocks\Payments\Integrations
PayPal::get_supported_features()
Returns an array of supported features.
Метод класса: PayPal{}
Возвращает
Строку[]
.
Использование
$PayPal = new PayPal(); $PayPal->get_supported_features();
Код PayPal::get_supported_features() PayPal::get supported features WC 9.2.3
public function get_supported_features() { $gateway = new WC_Gateway_Paypal(); $features = array_filter( $gateway->supports, array( $gateway, 'supports' ) ); /** * Filter to control what features are available for each payment gateway. * * @since 4.4.0 * * @example See docs/examples/payment-gateways-features-list.md * * @param array $features List of supported features. * @param string $name Gateway name. * @return array Updated list of supported features. */ return apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() ); }