LLMS_Payment_Gateway::get_option_default_value( mixed $default_value, string $full_option_name, bool $passed_default_value )
Option default value autoloader
Description Description
This is a callback function for the WP core filter default_option_{$option}
.
Parameters Parameters
- $default_value
-
(mixed) (Required) The default value. If no value is passed to
get_option()
, this will be an empty string. Otherwise it will be the default value passed to the method. - $full_option_name
-
(string) (Required) The full (prefixed) option name.
- $passed_default_value
-
(bool) (Required) Whether or not a default value was passed to
get_option()
.
Return Return
(mixed) The default option value.
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function get_option_default_value( $default_value, $full_option_name, $passed_default_value ) { $unprefixed = str_replace( $this->get_option_prefix(), '', $full_option_name ); return isset( $this->$unprefixed ) ? $this->$unprefixed : ''; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |