LLMS_Abstract_Query::count_results()
Set result counts and pagination properties.
Return Return
(void)
Source Source
File: includes/abstracts/llms-abstract-query.php
protected function count_results() { $this->number_results = count( (array) $this->results ); // If we have results and found rounds isn't disabled. if ( $this->number_results && ! $this->get( 'no_found_rows' ) ) { $this->found_results = $this->found_results(); $this->max_pages = absint( ceil( $this->found_results / $this->get( 'per_page' ) ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |