woocommerce_fulfillment_before_create

woocommerce_fulfillment_before_create

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.1.2

apply_filters('woocommerce_fulfillment_before_create') is found 1 times:

  • /src/Internal/DataStores/Fulfillments/FulfillmentsDataStore.php line 59
    		 * Filter to modify the fulfillment data before it is created.
    		 *
    		 * @since 10.1.0
    		 */
    		$data = apply_filters( 'woocommerce_fulfillment_before_create', $data );
    
    		$is_fulfill_action = $data->get_is_fulfilled();
    		// If the fulfillment is fulfilled, set the fulfilled date.
    		if ( $is_fulfill_action ) {
    			$data->set_date_fulfilled( current_time( 'mysql' ) );