LLMS_Abstract_Query::get( string $key, mixed $default = '' )
Retrieve a query variable with an optional fallback value when the value is not set.
Parameters Parameters
- $key
-
(string) (Required) Variable key.
- $default
-
(mixed) (Optional) Default value.
Default value: ''
Return Return
(mixed)
Source Source
File: includes/abstracts/llms-abstract-query.php
public function get( $key, $default = '' ) { return $this->query_vars[ $key ] ?? $default; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Moved from LLMS_Database_Query and updated to use the null coalesce operator. |
3.8.0 | Introduced. |