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.3.3

do_action('woocommerce_product_set_visibility') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 877
    					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: