• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Tools_Recount_Download_Stats::process_step() – Process a step

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;
    }
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: EDD_Tools_Recount_Download_Stats::process_step
Class ref: EDD_Tools_Recount_Download_Stats
Plugin ref: Easy Digital Downloads
Version: 2.9.23
Sourcefile: includes/admin/tools/class-edd-tools-recount-download-stats.php
File ref: includes/admin/tools/class-edd-tools-recount-download-stats.php
Deprecated?: No
API Letters: D,E,R,S,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites