You appear to be a bot. Output may be restricted
Description
Get the log IDs (50 based on this->per_step) for the current step
Usage
$array = EDD_File_Download_Log_Migration::get_log_ids_for_current_step();
Parameters
Returns
array
Source
File name: easy-digital-downloads/includes/admin/upgrades/classes/class-file-download-log-migration.php
Lines:
1 to 20 of 20
private function get_log_ids_for_current_step() { global $wpdb; // Default values $log_ids = array(); $offset = ( $this->step * $this->per_step ) - $this->per_step; // Count the number of entries! $term_tax_id = (int) get_option( 'edd_fdlm_term_tax_id', 0 ); // Only query if term taxonomy ID was prefetched if ( ! empty( $term_tax_id ) ) { $log_ids = $wpdb->get_col( $wpdb->prepare( "SELECT object_id FROM {$wpdb->term_relationships} WHERE term_taxonomy_id = %d LIMIT %d, %d", $term_tax_id, $offset, $this->per_step ) ); } // Always return an array return ! is_wp_error( $log_ids ) ? (array) $log_ids : array(); }