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: '*'


Top ↑

Return Return

(string)


Top ↑

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

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.5.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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