Forums › Global Maps › Hook for custom query This topic has 1 reply, 2 voices, and was last updated 5 years, 8 months ago by Eyal Fitoussi. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts May 25, 2016 at 10:22 pm #52436 James CobbettMember Hi, I’m using global maps on an event post type, but at the moment it shows all events (including ones that have already happened). Is there a hook I can use to pass in a meta query to the global map? Thanks, James May 27, 2016 at 11:31 am #52465 Eyal FitoussiMember Hi James, You can probably use the below filter to modify the WP_Query args: apply_filters( 'gmaps_gmpt_form_before_posts_query', $this->form ); 1 apply_filters( 'gmaps_gmpt_form_before_posts_query', $this->form ); This filter together with a few others can be found in omw-global-maps/posts/includes/gmaps-query-functions.php. I hope that helps. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) The topic ‘Hook for custom query’ is closed to new replies.