Product Icon

Country Restrictions for WooCommerce

Hide products, prices, or add to cart button and payment methods based on user countries.

Add wp filters to all restriction returning payload

Hi, I would need, if possible, to have development side filters on the returned payloads on all kinds of restrictions.

If it is possible to do it at least on the hide action of add to cart buttons, to both global rules and at the product level.

For example:
on line 752 of class-cor-front.php
instead of:
echo ”;
manage it with:
echo apply_filters(‘placeholder_test_filter_hook’, ”);

So that I can add more custom code that I need.

Thanks.

Author

caffeinadev

Current Status

Open

Last updated: January 31, 2023

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.