I have the WooCommerce REST API implemented and for themes which have WooCoomerce Support the API works fine, but for themes that dont declare WooCommerce support the REST API fails.
What does it mean when we say that the theme should declare WooCoomerce support?
What changes do i have to make? When i did my research i found the below code
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' );
}
is this all i need to add in the functions.php to declare support to WooCommerce.