woocommerce_coupon_object_updated_props
Usage
add_action( 'woocommerce_coupon_object_updated_props', 'wp_kama_woocommerce_coupon_object_updated_props_action', 10, 2 ); /** * Function for `woocommerce_coupon_object_updated_props` action-hook. * * @param $coupon * @param $updated_props * * @return void */ function wp_kama_woocommerce_coupon_object_updated_props_action( $coupon, $updated_props ){ // action... }
- $coupon
- -
- $updated_props
- -
Where the hook is called
woocommerce_coupon_object_updated_props
woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php 317
do_action( 'woocommerce_coupon_object_updated_props', $coupon, $this->updated_props );
Where the hook is used in WooCommerce
woocommerce/includes/tracks/events/class-wc-coupon-tracking.php 17
add_action( 'woocommerce_coupon_object_updated_props', array( $this, 'track_coupon_updated' ), 10, 2 );