Automattic\WooCommerce\Admin
ReportExporter::update_export_percentage_complete()
Update the completion percentage of a report export.
Метод класса: ReportExporter{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = ReportExporter::update_export_percentage_complete( $report_type, $export_id, $percentage );
- $report_type(строка) (обязательный)
- Report type. E.g. 'customers'.
- $export_id(строка) (обязательный)
- Unique ID for report (timestamp expected).
- $percentage(int) (обязательный)
- Completion percentage.
Код ReportExporter::update_export_percentage_complete() ReportExporter::update export percentage complete WC 9.8.1
public static function update_export_percentage_complete( $report_type, $export_id, $percentage ) { $exports_status = get_option( self::EXPORT_STATUS_OPTION, array() ); $status_key = self::get_status_key( $report_type, $export_id ); $exports_status[ $status_key ] = $percentage; update_option( self::EXPORT_STATUS_OPTION, $exports_status ); }