woocommerce_product_set_visibility

woocommerce_product_set_visibility

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_product_set_visibility') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 971
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
                    break;
            }
     
            if ( ! is_wp_error( wp_set_post_terms( $product->get_id(), $terms, 'product_visibility', false ) ) ) {
                do_action( 'woocommerce_product_set_visibility', $product->get_id(), $product->get_catalog_visibility() );
            }
        }
    }
     
    /**
     * Update attributes which are a mix of terms and meta data.

See this hook used in plugins: