LLMS_Payment_Gateway::get_logging_enabled()

Get the value of the logging setting


Return Return

(string)


Top ↑

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' );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Added the force filter, llms_gateway_{$this->id}_logging_enabled.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.