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().


Top ↑

Return Return

(int)


Top ↑

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.
	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0
10.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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