You appear to be a bot. Output may be restricted
Description
Get the Export Data
Usage
$array = EDD_File_Download_Log_Migration::get_data();
Parameters
Returns
array $data The data for the CSV file
Source
File name: easy-digital-downloads/includes/admin/upgrades/classes/class-file-download-log-migration.php
Lines:
1 to 41 of 41
public function get_data() { $step_items = $this->get_log_ids_for_current_step(); if ( ! is_array( $step_items ) ) { return false; } if ( empty( $step_items ) ) { return false; } foreach ( $step_items as $log_id ) { $log_id = (int) $log_id; $sanitized_log_id = absint( $log_id ); if ( $sanitized_log_id !== $log_id ) { edd_debug_log( "Log ID mismatch, skipping log ID {$log_id}" ); continue; } $has_customer_id = (int) get_post_meta( $log_id, '_edd_log_customer_id', true ); if ( ! empty( $has_customer_id ) ) { continue; } $payment_id = (int) get_post_meta( $log_id, '_edd_log_payment_id', true ); if ( ! empty( $payment_id ) ) { $customer_id = edd_get_payment_customer_id( $payment_id ); if ( $customer_id < 0 ) { $customer_id = 0; } update_post_meta( $log_id, '_edd_log_customer_id', $customer_id ); delete_post_meta( $log_id, '_edd_log_user_info' ); } } return true; }