You appear to be a bot. Output may be restricted
Description
Process a step
Usage
$bool = EDD_Tools_Recount_Download_Stats::process_step();
Parameters
Returns
bool
Source
File name: easy-digital-downloads/includes/admin/tools/class-edd-tools-recount-download-stats.php
Lines:
1 to 20 of 20
public function process_step() { if ( ! $this->can_export() ) { wp_die( __( 'You do not have permission to export data.', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); } $had_data = $this->get_data(); if( $had_data ) { $this->done = false; return true; } else { $this->delete_data( 'edd_recount_total_' . $this->download_id ); $this->delete_data( 'edd_temp_recount_download_stats' ); $this->done = true; $this->message = sprintf( __( 'Earnings and sales stats successfully recounted for %s.', 'easy-digital-downloads' ), get_the_title( $this->download_id ) ); return false; } }