Hide add to cart using woocommerce rest api in headless application
-
i am working on headless application using woocommerce rest api. i need a functionality to hide add to cart button for certain period of time. i know its possible to use woocommerce filter to disable add to cart with the help custom plugin but I need it in headless application. this filter disable the whole shop and i need exactly like that.
add_filter( 'woocommerce_is_purchasable', '__return_false');
don’t know how can I achieve it using woocommerce rest api. i go through whole woocommerce api documentation only found catalog_visibility and set product status into Draft. but its not an ideal solution. so any help really save my lot of time Thanks.
- The topic ‘Hide add to cart using woocommerce rest api in headless application’ is closed to new replies.