LLMS_REST_API_Keys_Query::preprare_query()
Prepare the SQL for the query
Contents
Return Return
(string)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys-query.php
* @return string
*/
protected function prepare_query() {
global $wpdb;
$from = "FROM {$wpdb->prefix}lifterlms_api_keys";
$where = $this->sql_where();
if ( ! $this->get( 'no_found_rows' ) ) {
$this->count_query = "SELECT COUNT(*) {$from} {$where}";
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.16 | Use $this->sql_select_columns({columns}) to determine the columns to select. |
| 1.0.0-beta.1 | Introduced. |