LLMS_Payment_Gateways::has_gateways( boolean $enabled = false )
Determines if any payment gateways are registered.
Parameters Parameters
- $enabled
-
(boolean) (Optional) Whether or not to check against only enabled gateways.
Default value: false
Return Return
(boolean)
Source Source
File: includes/class.llms.payment.gateways.php
public function has_gateways( $enabled = false ) { $method = $enabled ? 'get_enabled_payment_gateways' : 'get_payment_gateways'; return count( $this->{$method}() ) >= 1; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.5.0 | Refactor for code simplicity. |
3.0.0 | Introduced. |