[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fbtF2BJwO-byne9ayqv_AkJ-z8OsN2lDho3mQx1VrqGg":3},{"slug":4,"display_name":4,"profile_url":5,"plugin_count":6,"total_installs":7,"avg_security_score":8,"avg_patch_time_days":9,"trust_score":10,"computed_at":11,"plugins":12},"desie314","https:\u002F\u002Fprofiles.wordpress.org\u002Fdesie314\u002F",1,10,85,30,84,"2026-04-04T19:06:36.208Z",[13],{"slug":14,"name":15,"version":16,"author":4,"author_profile":5,"description":17,"short_description":18,"active_installs":7,"downloaded":19,"rating":20,"num_ratings":6,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":23,"tags":24,"homepage":23,"download_link":29,"security_score":8,"vuln_count":30,"unpatched_count":30,"last_vuln_date":31,"fetched_at":32},"csv-download","CSV Download","1.0.0","\u003Cp>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.\u003C\u002Fp>\n\u003Cp>Add the following code to \u003Cstrong>functions.php\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Ch4>Admin Example\u003C\u002Fh4>\n\u003Cpre>\u003Ccode>\u002F**\n * Instantiate CSVDownload class with appropriate arguments (listed in class).\n * Arguments are optional\n *\u002F\nif (class_exists('CSVDownload')) {\n  $csv_button = New CSVDownload(array(\n    'post_types' => array('page'),\n    'post_type_ids' => array(420, 114, 749),\n    'metabox_title' => 'Download CSV Data',\n    'help_text' => 'CSV file containing useful data.',\n    'parameter' => 'csv_export_button',\n    'button_text' => 'Download'\n  ));\n}\n\n\u002F**\n * Get results, convert to csv file, and trigger download.\n *\u002F\nif(isset($_GET[$csv_button->parameter])) {\n  add_action('admin_init', function(){\n    \u002F\u002F Get results array\n    $results = get_csv_file_results();\n    \u002F\u002F Convert results array to csv file and trigger download.\n    CSVDownload::download_csv_results(array(\n      'results' => $results,\n      'file_name' => 'csv_data'\n    ));\n    exit;\n  }, 1);\n}\n\n\u002F**\n * Get the results array for the csv button download.\n *\n * @return array\n *\u002F\nfunction get_csv_file_results(){\n\n  \u002F\u002F Create multi-dimensional array.\n  $results_array = array(\n    array('Email','User Name','Favorite Color'), \u002F\u002F Column headers\n    array('fake@email.com','coolguy1','blue'),\n    array('fake@email.com','coolguy2','orange'),\n    array('fake@email.com','coolguy3','pink'),\n    array('fake@email.com','coolguy4','red'),\n  );\n\n  \u002F\u002F Return results array\n  return $results_array;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4>Front End Example\u003C\u002Fh4>\n\u003Cp>Add a button element to your HTML.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Ca href=\"\u003C?php echo $_SERVER[\"REQUEST_URI\"]; ?>?csv_export_button=1\">Download\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Add init action callback and provide array data.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002F**\n * Get results, convert to csv file, and trigger download.\n *\u002F\nif(isset($_GET['csv_export_button'])) {\n  add_action('init', function(){\n    \u002F\u002F Get results array\n    $results = get_csv_file_results();\n    \u002F\u002F Convert results array to csv file and trigger download.\n    CSVDownload::download_csv_results(array(\n      'results' => $results,\n      'file_name' => 'csv_data'\n    ));\n    exit;\n  }, 1);\n}\n\n\u002F**\n * Get the results array for the csv button download.\n *\n * @return array\n *\u002F\nfunction get_csv_file_results(){\n\n  \u002F\u002F Create multi-dimensional array.\n  $results_array = array(\n    array('Email','User Name','Favorite Color'), \u002F\u002F Column headers\n    array('fake@email.com','coolguy1','blue'),\n    array('fake@email.com','coolguy2','orange'),\n    array('fake@email.com','coolguy3','pink'),\n    array('fake@email.com','coolguy4','red'),\n  );\n\n  \u002F\u002F Return results array\n  return $results_array;\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ca href=\"http:\u002F\u002Fagencylabs.com\u002F\" rel=\"nofollow ugc\">AgencyLabs.com\u003C\u002Fa> – A digital production studio.\u003C\u002Fp>\n","A plugin for WP developers to easily add CSV download links to the admin section or front end.",1764,100,"2016-08-02T18:36:00.000Z","4.5.33","",[25,26,14,27,28],"comma-separated-values-list","csv","csv-download-button","csv-download-link","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fcsv-download.zip",0,null,"2026-03-15T15:16:48.613Z"]