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.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.query.php


			

Top ↑

Changelog 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) to15, so to avoid conflicts with the Divi theme whose callback runs at10`, 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.

Top ↑

User Contributed Notes User Contributed Notes

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