woocommerce_after_(object_type)_object_save хук-событие . WC 1.0
Trigger action after saving to the DB.
Использование
add_action( 'woocommerce_after_(object_type)_object_save', 'action_function_name_6401', 10, 2 ); function action_function_name_6401( $this, $data_store ){ // action... }
- $this(WC_Data)
- The object being saved.
- $data_store(WC_Data_Store_WP)
- THe data store persisting the data.
Где вызывается хук
woocommerce_after_(object_type)_object_save
woocommerce_after_(object_type)_object_save
woocommerce_after_(object_type)_object_save
woocommerce_after_(object_type)_object_save
woocommerce_after_(object_type)_object_save
woocommerce/includes/class-wc-shipping-zone.php 287
do_action( 'woocommerce_after_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-order.php 198
do_action( 'woocommerce_after_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-product.php 1391
do_action( 'woocommerce_after_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/abstracts/abstract-wc-data.php 227
do_action( 'woocommerce_after_' . $this->object_type . '_object_save', $this, $this->data_store );
woocommerce/includes/class-wc-product-variable.php 490
do_action( 'woocommerce_after_' . $this->object_type . '_object_save', $this, $this->data_store );