wc_before_products_starting_sales

wc_before_products_starting_sales

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('wc_before_products_starting_sales') is found 1 times:

  • /includes/wc-product-functions.php line 484
     
    	// Sales which are due to start.
    	$product_ids = $data_store->get_starting_sales();
    	if ( $product_ids ) {
    		do_action( 'wc_before_products_starting_sales', $product_ids );
    		foreach ( $product_ids as $product_id ) {
    			$product = wc_get_product( $product_id );
    
    			if ( $product ) {
    				$sale_price = $product->get_sale_price();