LLMS_Abstract_Query::query()
Execute a query.
Return Return
(void)
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(); }
Expand full source code Collapse full source code View on GitHub
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. |