Automattic\WooCommerce\Internal\Admin\Settings
PaymentsProviders::is_offline_payment_method
Check if a payment gateway is an offline payment method.
Method of the class: PaymentsProviders{}
No Hooks.
Returns
true|false. True if the payment gateway is an offline payment method, false otherwise.
Usage
$PaymentsProviders = new PaymentsProviders(); $PaymentsProviders->is_offline_payment_method( $id ): bool;
- $id(string) (required)
- The ID of the payment gateway.
PaymentsProviders::is_offline_payment_method() PaymentsProviders::is offline payment method code WC 10.7.0
public function is_offline_payment_method( string $id ): bool {
return in_array( $id, self::OFFLINE_METHODS, true );
}