woocommerce_fulfillment_before_update
Filter to modify the fulfillment data before it is updated.
Usage
add_filter( 'woocommerce_fulfillment_before_update', 'wp_kama_woocommerce_fulfillment_before_update_filter' );
/**
* Function for `woocommerce_fulfillment_before_update` filter-hook.
*
* @param Fulfillment $data The fulfillment object that is being updated.
*
* @return Fulfillment
*/
function wp_kama_woocommerce_fulfillment_before_update_filter( $data ){
// filter...
return $data;
}
- $data(Fulfillment)
- The fulfillment object that is being updated.
Changelog
| Since 10.1.0 | Introduced. |
Where the hook is called
woocommerce_fulfillment_before_update
woocommerce/src/Internal/DataStores/Fulfillments/FulfillmentsDataStore.php 198
$data = apply_filters( 'woocommerce_fulfillment_before_update', $data );