LLMS_Payment_Gateway::get_logging_enabled()
Get the value of the logging setting
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function get_logging_enabled() { /** * Enables forcing the logging status for the gateway on or off. * * The dynamic portion of this hook, `{$this->id}`, refers to the gateway's ID. * * @since 7.0.0 * * @param null|bool $forced The forced status. If `null`, the default status derived from the gateway options will be used. */ $forced = apply_filters( "llms_gateway_{$this->id}_logging_enabled", null ); if ( ! is_null( $forced ) ) { return $forced ? 'yes' : 'no'; } return $this->get_option( 'logging_enabled' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Added the force filter, llms_gateway_{$this->id}_logging_enabled . |
3.0.0 | Introduced. |