Automattic\WooCommerce\Internal\Admin\Settings

PaymentProviders::get_offline_payment_methods_gatewayspublicWC 1.0

Get the offline payment methods gateways.

Method of the class: PaymentProviders{}

No Hooks.

Returns

Array. The registered offline payment methods gateways keyed by their global gateways list order/index.

Usage

$PaymentProviders = new PaymentProviders();
$PaymentProviders->get_offline_payment_methods_gateways(): array;

PaymentProviders::get_offline_payment_methods_gateways() code WC 9.9.4

public function get_offline_payment_methods_gateways(): array {
	return array_filter(
		$this->get_payment_gateways( false ), // We include the shells to get the global order/index.
		function ( $gateway ) {
			return $this->is_offline_payment_method( $gateway->id );
		}
	);
}