woocommerce_fulfillment_before_update

woocommerce_fulfillment_before_update

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.1.2

apply_filters('woocommerce_fulfillment_before_update') is found 1 times:

  • /src/Internal/DataStores/Fulfillments/FulfillmentsDataStore.php line 197
    		 * @param Fulfillment $data The fulfillment object that is being updated.
    		 *
    		 * @since 10.1.0
    		 */
    		$data = apply_filters( 'woocommerce_fulfillment_before_update', $data );
    
    		// If the fulfillment is fulfilled, set the fulfilled date.
    		$is_fulfill_action = false;
    		if ( $data->get_is_fulfilled() && empty( $data->get_date_fulfilled() ) ) {
    			$is_fulfill_action = true;
    			$data->set_date_fulfilled( current_time( 'mysql' ) );