woocommerce_delete_order_items

woocommerce_delete_order_items

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_delete_order_items') is found 1 times:

  • /includes/class-wc-post-data.php line 483
    	public static function delete_order_items( $postid ) {
    		global $wpdb;
    
    		if ( OrderUtil::is_order( $postid, wc_get_order_types() ) ) {
    			do_action( 'woocommerce_delete_order_items', $postid );
    
    			$wpdb->query(
    				"
    				DELETE {$wpdb->prefix}woocommerce_order_items, {$wpdb->prefix}woocommerce_order_itemmeta
    				FROM {$wpdb->prefix}woocommerce_order_items
    				JOIN {$wpdb->prefix}woocommerce_order_itemmeta ON {$wpdb->prefix}woocommerce_order_items.order_item_id = {$wpdb->prefix}woocommerce_order_itemmeta.order_item_id