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

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

Trigger action before saving to the DB. Allows you to adjust object props before save.

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

add_action( 'woocommerce_before_(object_type)_object_save', 'action_function_name_7133', 10, 2 );
function action_function_name_7133( $this, $data_store ){
	// action...
}
$this(WC_Data)
The object being saved.
$data_store(WC_Data_Store_WP)
THe data store persisting the data.

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

WC_Shipping_Zone::save()
woocommerce_before_(object_type)_object_save
WC_Abstract_Order::save()
woocommerce_before_(object_type)_object_save
WC_Product::save()
woocommerce_before_(object_type)_object_save
WC_Data::save()
woocommerce_before_(object_type)_object_save
WC_Product_Variable::save()
woocommerce_before_(object_type)_object_save
woocommerce/includes/class-wc-shipping-zone.php 273
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-order.php 182
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-product.php 1375
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-data.php 213
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-product-variable.php 469
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );

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

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