In the previous post, I talked a bit about using `pre_get_posts` and how to efficiently exclude categories from the main loop.
Of course, in posts like that, the code is meant to be a point of reference or a starting place for which more advanced functionality can be written.
But one thing that I failed to mention about using `pre_get_posts` in WordPress is that it’s not limited to the public facing side of the site.