LLMS_Database_Query::get( string $key, mixed $default = '' )
Retrieve a query variable with an optional fallback / default.
Parameters Parameters
- $key
-
(string) (Required) Variable key.
- $default
-
(mixed) (Optional) Default value.
Default value: ''
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
global $wpdb; return $wpdb->get_results( $this->query ); // phpcs:ignore: WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared } /** * Set variables related to total number of results and pages possible with supplied arguments. * * @since 3.8.0
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |