LLMS_Query::pre_get_posts( WP_Query $query )
Sets the WP_Query variables for “post_type” on LifterLMS custom taxonomy archive pages for Courses and Memberships.
Description Description
Parameters Parameters
- $query
-
(Required) Main WP_Query Object.
Return Return
(void)
Source Source
File: includes/class.llms.query.php
Changelog Changelog
Version | Description |
---|---|
3.36.4 | Don't remove this callback from within the callback itself. Rather use a static variable to make sure the business logic of this method 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 post_title as a secondary sort when the primary sort is menu_order |
3.16.8 | |
1.4.4 | Introduced. |