LLMS_Abstract_Query::get_allowed_sort_fields()

Retrieve a list of fields that are allowed to be used for result sorting.


Return Return

(string[])


Top ↑

Source Source

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

	protected function get_allowed_sort_fields() {

		$allowed_fields = $this->allowed_sort_fields;

		if ( $this->get( 'suppress_filters' ) ) {
			return $allowed_fields;
		}

		/**
		 * Filters the allowed sort fields.
		 *
		 * The dynamic portion of this hook, `$this->id`, refers to ID of the extending
		 * query class.
		 *
		 * @since 6.0.0
		 *
		 * @param array $allowed_fields Default arguments.
		 */
		return apply_filters( "llms_{$this->id}_query_allowed_sort_fields", $allowed_fields );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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