LLMS_Database_Query::get( string $key, mixed $default = '' )

Retrieve a query variable with an optional fallback / default


Description Description


Parameters Parameters

$key

(string) (Required) variable key

$default

(mixed) (Optional) default value

Default value: ''


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.database.query.php

	public function get( $key, $default = '' ) {

		if ( isset( $this->query_vars[ $key ] ) ) {
			return $this->query_vars[ $key ];
		}

		return $default;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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