Created
April 16, 2020 17:38
-
-
Save mingodev/c2cb7147a3543f4e41dd45934f139c8b to your computer and use it in GitHub Desktop.
Hijack wp request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('posts_join_paged', function ($join) { | |
return "LEFT JOIN wpp1_postmeta ON ( wpp1_posts.ID = wpp1_postmeta.post_id AND wpp1_postmeta.meta_key = 'Date de l\'événement')"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codex.wordpress.org/Plugin_API/Filter_Reference