• 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

    (@microteq)

    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

    (@morehawes)

    Hi @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

    (@microteq)

    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.