Title: Filter Hook Request
Last modified: May 21, 2023

---

# Filter Hook Request

 *  [microteq](https://wordpress.org/support/users/microteq/)
 * (@microteq)
 * [3 years ago](https://wordpress.org/support/topic/filter-hook-request-2/)
 * Hi Joe
 * I have managed to filter all the maps of a collection additionally by $wp_query.
   But I do not like inserting my code into yours. So would it be possible to add
   a filter hook by adding the following line at the end of the constructor of your
   Collection class?
 * $this->Maps = apply_filters(‘waymark_update_collection_map_list’,$this->Maps);
 * I think this could also be useful for other people.
 * Many thanks in advance and best regards.
 * Daniel.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [microteq](https://wordpress.org/support/users/microteq/)
 * (@microteq)
 * [3 years ago](https://wordpress.org/support/topic/filter-hook-request-2/#post-16773770)
 * Hi Joe
 * What do you think about inserting the above mentioned filter hook in one of the
   next releases?
 * Best regards.
 * Daniel.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [3 years ago](https://wordpress.org/support/topic/filter-hook-request-2/#post-16775154)
 * Hi [@microteq](https://wordpress.org/support/users/microteq/),
 * Thanks for the suggestion, I like the idea of adding filters like this.
 * Currently the above will only filter Collection Maps shown with the Shortcode,
   not when viewing the Collection Archive pages. The main WP_Query might need to
   be filtered to achieve this, but I haven’t had time to experiment yet.
 * Cheers,
 * Joe
 *  Thread Starter [microteq](https://wordpress.org/support/users/microteq/)
 * (@microteq)
 * [3 years ago](https://wordpress.org/support/topic/filter-hook-request-2/#post-16777323)
 * Hi Joe
 * The hook, I suggested, helps me for my purposes. If you have a better place which
   is more general and helps more people, feel free to place it there.
 * Best regards.
 * Daniel.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter Hook Request’ is closed to new replies.

 * ![](https://ps.w.org/waymark/assets/icon-256x256.png?rev=3491393)
 * [Waymark](https://wordpress.org/plugins/waymark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/waymark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/waymark/)
 * [Active Topics](https://wordpress.org/support/plugin/waymark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/waymark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/waymark/reviews/)

## Tags

 * [Filter Hook](https://wordpress.org/support/topic-tag/filter-hook/)

 * 3 replies
 * 2 participants
 * Last reply from: [microteq](https://wordpress.org/support/users/microteq/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/filter-hook-request-2/#post-16777323)
 * Status: not a support question