woocommerce_admin_export_id

woocommerce_admin_export_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_export_id') is found 1 times:

  • /src/Admin/API/Reports/Export/Controller.php line 159
    		$report_args = empty( $request['report_args'] ) ? array() : $request['report_args'];
    		$send_email  = isset( $request['email'] ) ? $request['email'] : false;
    
    		$default_export_id = str_replace( '.', '', microtime( true ) );
    		$export_id         = apply_filters( 'woocommerce_admin_export_id', $default_export_id );
    		$export_id         = (string) sanitize_file_name( $export_id );
    
    		$total_rows = ReportExporter::queue_report_export( $export_id, $report_type, $report_args, $send_email );
    
    		if ( 0 === $total_rows ) {
    			return rest_ensure_response(