LLMS_Payment_Gateway::supports( string $feature, LLMS_Order $order = null )
Determine if a feature is supported by the gateway
Description Description
Looks at the $this->supports and ensures the submitted feature exists and is true.
Parameters Parameters
- $feature
-
(string) (Required) Name of the supported feature.
- $order
-
(LLMS_Order) (Optional) Instance of an LLMS_Order.
Default value: null
Return Return
(boolean)
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 | public function supports( $feature , $order = null ) { $supports = $this ->get_supported_features(); if ( isset( $supports [ $feature ] ) && $supports [ $feature ] ) { return true; } return false; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Added $order param, to be used when the feature also depends on an order property. |
3.0.0 | Introduced. |