LLMS_Abstract_Query::query()

Execute a query.


Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-query.php

	public function query() {

		$this->query = $this->prepare_query();
		if ( ! $this->get( 'suppress_filters' ) ) {
			/**
			 * Filters the query SQL.
			 *
			 * The dynamic part of the filter `$this->id` identifies the extending query.
			 *
			 * @since 3.8.0
			 *
			 * @param string              $sql      The SQL query.
			 * @param LLMS_Database_Query $db_query The LLMS_Database_Query instance.
			 */
			$this->query = apply_filters( "llms_{$this->id}_query_prepare_query", $this->query, $this );
		}

		$this->results = $this->perform_query();

		$this->count_results();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Moved from LLMS_Database_Query abstract.
4.5.1 Drop use of $this->get_filter('prepare_query') in favor of "llms_{$this->id}_query_prepare_query".
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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