Skip to content

Add CSV export for URL list - #12

Draft
jonathanbossenger with Copilot wants to merge 2 commits into
trunkfrom
copilot/add-url-export-feature
Draft

Add CSV export for URL list#12
jonathanbossenger with Copilot wants to merge 2 commits into
trunkfrom
copilot/add-url-export-feature

Conversation

Copilot AI commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Users requested the ability to export the generated URL list as a downloadable CSV file (ref: https://wordpress.org/support/topic/feature-request-csv-export/).

Changes

  • New admin_init hook handler (list_all_urls_handle_csv_export): intercepts the POST before any HTML is rendered, verifies nonce + manage_options capability, fetches published posts for the selected post type, then streams urls-export.csv with a URL header column and one raw permalink per row.
  • New "Export as CSV" button added to the existing admin form alongside the "Submit" button; distinguished by name="export-csv" so the export handler can identify it without a separate form or endpoint.

Raw get_permalink() values are written to the CSV (no HTML escaping), ensuring URLs are valid in the downloaded file.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/b598aa890815b8df16363271b659d73280129101
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/PmxkQL /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/c216317e96c8b3f5932808f9b0f1f7a14e3bbf55
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/PmxkQL /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/PmxkQL /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/845eb62303d2ca9b289ef216356568ccc075ffd1
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/PmxkQL /usr/bin/composer install --no-interaction (http block)
  • https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7795ec6fa05663d716a549d0b44e47ffc8b0d4a6
    • Triggering command: /usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/PmxkQL /usr/bin/composer install --no-interaction (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Ability to export URLs</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

@jonathanbossenger Vote https://wordpress.org/support/topic/feature-request-csv-export/

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to export URLs Add CSV export for URL list Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to export URLs

2 participants