Automattic\WooCommerce\Admin

ReportExporter::get_status_option_name │ protected static │ WC 1.0

Get the name of the option an export's progress is stored under.

The key is hashed so the name fits option_name whatever length the export ID has.

Метод класса: ReportExporter{}

Хуков нет.

Возвращает

string. Option name.

Использование

$result = ReportExporter::get_status_option_name( $report_type, $export_id );
$report_type(строка) (обязательный)
Report type. E.g. 'customers'.
$export_id(строка) (обязательный)
Unique ID for report (timestamp expected).

Код ReportExporter::get_status_option_name() WC 11.3.0

protected static function get_status_option_name( $report_type, $export_id ) {
	$status_key = self::get_status_key( $report_type, $export_id );

	return self::EXPORT_STATUS_OPTION . '_' . md5( $status_key );
}