WordPress plugin intelligence profile

CSV Download

A plugin for WP developers to easily add CSV download links to the admin section or front end.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.5
Current version1.0.0
WordPress coverageTested up to WordPress 4.5
Minimum stackWP — · PHP —
Directory statusactive
Last directory update2 Aug 201610y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records CSV Download version 1.0.0 as active, updated 10y ago and tested up to WordPress 4.5.

Overview

About this plugin

A plugin for WP developers to easily add CSV download links to the admin section or front end. When a specific GET variable is detected (from the download link) your data, which needs to be a multi-dimensional array, is passed to a function that converts it to a csv file and triggers the download.

php.

Admin Example

/** * Instantiate CSVDownload class with appropriate arguments (listed in class). ', 'parameter' => 'csv_export_button', 'button_text' => 'Download' )); }

/** * Get results, convert to csv file, and trigger download. */ if(isset($_GET[$csv_button->parameter])) { add_action('admin_init', function(){ // Get results array $results = get_csv_file_results(); // Convert results array to csv file and trigger download. CSVDownload::download_csv_results(array( 'results' => $results, 'file_name' => 'csv_data' )); exit; }, 1); }

/** * Get the results array for the csv button download. * * @return array */ function get_csv_file_results(){

// Create multi-dimensional array. com','coolguy4','red'), );

// Return results array return $results_array; }

Front End Example

Add a button element to your HTML.

csv_export_button=1">Download</a>

Add init action callback and provide array data.

/** * Get results, convert to csv file, and trigger download. */ if(isset($_GET['csv_export_button'])) { add_action('init', function(){ // Get results array $results = get_csv_file_results(); // Convert results array to csv file and trigger download. CSVDownload::download_csv_results(array( 'results' => $results, 'file_name' => 'csv_data' )); exit; }, 1); }

/** * Get the results array for the csv button download. * * @return array */ function get_csv_file_results(){

// Create multi-dimensional array. com','coolguy4','red'), );

// Return results array return $results_array; }

com – A digital production studio.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • comma separated values list
  • csv download
  • csv download button
  • csv download link
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.5

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.5.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.5
Minimum requirementsWordPress not listed · PHP not listed
Update activity2 Aug 201610y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.