woocommerce_fulfillment_before_update │ хук-фильтр │ WC 10.1.0

Filter to modify the fulfillment data before it is updated.

Использование

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.

Список изменений

С версии 10.1.0 Введена.

Где вызывается хук

FulfillmentsDataStore::update()
woocommerce_fulfillment_before_update
woocommerce/src/Admin/Features/Fulfillments/DataStore/FulfillmentsDataStore.php 195
$data = apply_filters( 'woocommerce_fulfillment_before_update', $data );

Где используется хук в WooCommerce

Использование не найдено.