woocommerce_trash_coupon

woocommerce_trash_coupon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_trash_coupon') is found 1 times:

  • /includes/data-stores/class-wc-coupon-data-store-cpt.php line 253
    			do_action( 'woocommerce_delete_coupon', $id );
    		} else {
    			wp_trash_post( $id );
    			$coupon->set_status( 'trash' );
    			do_action( 'woocommerce_trash_coupon', $id );
    		}
    	}
    
    	/**
    	 * Helper method that updates all the post meta for a coupon based on it's settings in the WC_Coupon class.
    	 *