As far as I understand, I can filter a view with custom PHP. (The existing filter options are not enough in my case.) I have found several articles that describe how this should work, but for me already the hook does not work. Maybe you can help me.
I have set up a test installation here hidden link.
On the home page, I added a view via shortcode [wpv-view name="list-posts"].
In the functions.php I try to use the hook "wpv_filter_query". I use the Query Monitor plugin to debug the code (QM::...).