LLMS_Abstract_Query::get_allowed_sort_fields()
Retrieve a list of fields that are allowed to be used for result sorting.
Return Return
(string[])
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |