WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

woocommerce_before_(object_type)_object_save хук-событие . WC 1.0

Trigger action before saving to the DB. Use a pointer to adjust object props before save.

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

add_action( 'woocommerce_before_(object_type)_object_save', 'action_function_name_1999', 10, 2 );
function action_function_name_1999( $that, $data_store ){
	// action...
}
$that
-
$data_store
-

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

WC_Product::save()
woocommerce_before_(object_type)_object_save
WC_Shipping_Zone::save()
woocommerce_before_(object_type)_object_save
WC_Abstract_Order::save()
woocommerce_before_(object_type)_object_save
WC_Data::save()
woocommerce_before_(object_type)_object_save
WC_Order::save()
woocommerce_before_(object_type)_object_save
WC_Customer_Download::save()
woocommerce_before_(object_type)_object_save
WC_Product_Variable::save()
woocommerce_before_(object_type)_object_save
woocommerce/includes/abstracts/abstract-wc-product.php 1365
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-shipping-zone.php 264
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-order.php 170
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-data.php 205
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-order.php 220
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-customer-download.php 350
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-product-variable.php 439
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );

Где используется хук (в ядре WC)

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