LLMS_Payment_Gateway::get_option( string $key, string $secure_key = false )
Get the value of an option from the database & fallback to default value if none found Optionally attempts to retrieve a secure key first, if secure key is provided.
Description Description
Parameters Parameters
- $key
-
(string) (Required) option key, ie "title".
- $secure_key
-
(string) (Optional) Secure option key, ie "TITLE".
Default value: false
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function get_option( $key, $secure_key = false ) { if ( $secure_key ) { $secure_val = llms_get_secure_option( $secure_key ); if ( false !== $secure_val ) { return $secure_val; // intentionally not filtered here. } } $name = $this->get_option_name( $key ); $val = get_option( $name, $this->$key ); return apply_filters( 'llms_get_gateway_' . $key, $val, $this->id ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |