LLMS_Payment_Gateways::has_gateways( boolean $enabled = false )

Determines if any payment gateways are registered.

Parameters Parameters


(boolean) (Optional) Whether or not to check against only enabled gateways.

Default value: false

Top ↑

Return Return


Top ↑

Source Source

File: includes/class.llms.payment.gateways.php

	public function has_gateways( $enabled = false ) {
		$method = $enabled ? 'get_enabled_payment_gateways' : 'get_payment_gateways';
		return count( $this->{$method}() ) >= 1;

Top ↑

Changelog Changelog

Version Description
6.5.0 Refactor for code simplicity.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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