LLMS_Database_Query::sql_select_columns( string $select_columns = '*' )
Retrieve the prepared SQL for the SELECT clause.
Parameters Parameters
- $select_columns
-
(string) (Optional) Columns to select. Default '*'.
Default value: '*'
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
protected function sql_select_columns( $select_columns = '*' ) {
if ( ! $this->get( 'no_found_rows' ) ) {
$select_columns = 'SQL_CALC_FOUND_ROWS ' . $select_columns;
}
if ( $this->get( 'suppress_filters' ) ) {
return $select_columns;
}
/**
* Filters the query SELECT columns.
*
* The dynamic part of the filter `$this->id` identifies the extending query.
*
* @since 4.5.1
*
* @param string $select_columns Columns to select.
* @param LLMS_Database_Query $db_query Instance of LLMS_Database_Query.
*/
return apply_filters( "llms_{$this->id}_query_select_columns", $select_columns, $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.5.1 | Introduced. |