LLMS_Database_Query::found_results()
Retrieve the total number of found results for the given query.
Description Description
Uses a separate COUNT(*) query built from the same SQL clauses as the main query, set by subclasses in prepare_query().
Return Return
(int)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
protected function found_results() {
global $wpdb;
if ( empty( $this->count_query ) ) {
return 0;
}
return (int) $wpdb->get_var( $this->count_query ); // db call ok; no-cache ok.
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | |
| 10.0.0 | Introduced. |