Skip to content
Advertisement

use custome zone in woocommerce in wordpress plugin development

so this is my code

JavaScript

and add_filter( ‘woocommerce_states’, ‘woo_custom_shipping_zones’ ); its not working inside in my function but if i put it outside and reactivate my plugin its working

how can use this filter inside the function?

Advertisement

Answer

You could use WordPress options to solve the problem:

JavaScript

The code should work. Add it to your active theme’s functions.php.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement