Create courses with lessons and manage member access access natively in Paid Memberships Pro. Also integrates membership with third party LMS plugins like LifterLMS, LearnDash, Tutor LMS, and Sensei LMS.
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Make sure the code does what it says - done -
No fatal errors when running it. - done -
Run through WPCS - done -
Are comments clean and readable? - done -
Are function or class names named correctly? - done -
Does the code follow the way we’ve done it before? - done -
Changes proposed in this Pull Request:
Hook into get_next_post_where, get_previous_post_where, get_next_post_sort and get_previous_post_sort filters to
Replace the SQL query where and order by clauses string to sort adjacent posts by menu_order instead of post_date.
Resolves #67
How to test the changes in this Pull Request:
Check steps described in issue above
Other information:
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you successfully run tests with your changes locally?
Changelog entry
Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.
Added filters callbacks for get_next_post_where, get_previous_post_where, get_next_post_sort and get_previous_post_sort to get proper results
All Submissions:
Make sure the code does what it says - done - No fatal errors when running it. - done - Run through WPCS - done - Are comments clean and readable? - done - Are function or class names named correctly? - done - Does the code follow the way we’ve done it before? - done -
Changes proposed in this Pull Request:
Hook into get_next_post_where, get_previous_post_where, get_next_post_sort and get_previous_post_sort filters to Replace the SQL query where and order by clauses string to sort adjacent posts by menu_order instead of post_date.
Resolves #67
How to test the changes in this Pull Request:
Check steps described in issue above
Other information:
Changelog entry
Added filters callbacks for get_next_post_where, get_previous_post_where, get_next_post_sort and get_previous_post_sort to get proper results