LLMS_Query
LLMS_Query class.
Description Description
Source Source
File: includes/class.llms.query.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Remove previously deprecated methods. |
3.36.4 | Don't remove pre_get_posts callback from within the callback itself. Rather use a static variable to make sure the business logic of the callback is executed only once. |
3.36.3 | Changed pre_get_posts callback from 10 (default) to 15, so to avoid conflicts with the Divi theme whose callback runs at 10`, but since themes are loaded after plugins it overrode our one. |
3.33.0 | Added catalog secondary sorting by post_title when the primary sort is menu_order . |
3.31.0 | Deprecated add_query_vars() method and added sanitizing functions when accessing $_GET` vars. |
1.0.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- add_endpoints — Add Query Endpoints
- get_query_vars — Get query variables
- get_tax_query — Get a taxonomy query that filters out courses & memberships based on catalog / search visibility settings
- init_query_vars — Init queries
- maybe_404_certificate — Serve a 404 for certificates that are not viewable by the current user
- parse_request — Parse the request for query variables
- pre_get_posts — Sets the WP_Query variables for "post_type" on LifterLMS custom taxonomy archive pages for Courses and Memberships.
- set_query_vars — Set query variables