filter proposal in wpdm package code

Viewing 3 posts - 1 through 3 (of 3 total)
#209846

davide balconi
Participant

Hello,
i need to add a searchbox into the wpdm_all_package shortcode
I’ve noticed that i can add the searchbox as an external entity and have that interract with the shortcode via wp_query
to do so, i’ll need a changes in plugin code that can be useful for a lot of users

In
download-manager\src\Package\views\all-packages-shortcode.php:245

Add:

$query_params = apply_filters(‘wpdm_all_packages_query_params’, $query_params);

So if needed we can change the wp query ad change parameters (in my example add a “s” parameter)
Let me know if is possible or if there is a better way that i didnt see
Have nice day

Reference : https://www.wpdownloadmanager.com/support/topic/filter-proposal-in-wpdm-package-code/
Moderator ask me to cross post here

#209889

Tahasin
Moderator

Hello,

I hope this message finds you well.

We have added the filter wpdm_all_packages_query_params , now you can use that filter.

Regards

#209890

davide balconi
Participant

Great! Thank you 🙂

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

You must be logged in to reply to this topic.