woocommerce_delete_order_items

woocommerce_delete_order_items

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_delete_order_items') is found 1 times:

  • /includes/class-wc-post-data.php line 485
    	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