WC_Product_Data_Store_CPT::update_terms PHP Method

update_terms() protected method

For all stored terms in all taxonomies, save them to the DB.
Since: 2.7.0
protected update_terms ( &$product )
    protected function update_terms(&$product)
    {
        wp_set_post_terms($product->get_id(), $product->get_category_ids('edit'), 'product_cat', false);
        wp_set_post_terms($product->get_id(), $product->get_tag_ids('edit'), 'product_tag', false);
        wp_set_post_terms($product->get_id(), array($product->get_shipping_class_id('edit')), 'product_shipping_class', false);
    }