Automattic\WooCommerce\Blocks\Payments\Integrations

PayPal::get_supported_features()publicWC 1.0

Returns an array of supported features.

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

Возвращает

Строку[].

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

$PayPal = new PayPal();
$PayPal->get_supported_features();

Код PayPal::get_supported_features() WC 6.9.4

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.
	 *
	 * @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() );
}