LLMS_Abstract_Query::count_results()

Set result counts and pagination properties.


Return Return

(void)


Top ↑

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' ) ) );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.