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

259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
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.