• 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_Batch_Customers_Export::get_percentage_complete() – Return the calculated completion percentage

You appear to be a bot. Output may be restricted

Description

Return the calculated completion percentage

Usage

$int = EDD_Batch_Customers_Export::get_percentage_complete();

Parameters

Returns

int

Source

File name: easy-digital-downloads/includes/admin/reporting/export/class-batch-export-customers.php
Lines:

1 to 23 of 23
  public function get_percentage_complete() {

    $percentage = 0;

    // We can't count the number when getting them for a specific download
    if( empty( $this->download ) ) {

      $total = EDD()->customers->count();

      if( $total > 0 ) {

        $percentage = ( ( 30 * $this->step ) / $total ) * 100;

      }

    }

    if( $percentage > 100 ) {
      $percentage = 100;
    }

    return $percentage;
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th January 2022

Primary Sidebar

Information

Function name: EDD_Batch_Customers_Export::get_percentage_complete
Class ref: EDD_Batch_Customers_Export
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/reporting/export/class-batch-export-customers.php
File ref: includes/admin/reporting/export/class-batch-export-customers.php
Deprecated?: No
API Letters: B,C,E,G

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
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-2022. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites