Halloween Sale 15% off Ends in See the plans

Snippet Library

WordPress code snippets, ready to use

3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.

1–11 of 11 snippets “csv”

  • PHP WooCommerce

    Export Customers to CSV

    Adds a Customers CSV export under WooCommerce > Export customers with names, emails, phone, location, order count and total spent for every customer account.

  • PHP Multisite

    Export Network Users to CSV

    Adds an "Export CSV" button to Network Admin > Users that downloads every network user with their email, registration date, number of sites and super admin status.

  • PHP WooCommerce

    Export Selected Orders to CSV

    Adds an "Export to CSV" bulk action to the admin orders list that downloads the selected orders with customer, address, items and totals for spreadsheets or accounting.

  • PHP Admin

    Export Selected Posts to CSV

    Adds an "Export to CSV" bulk action to the Posts and Pages screens that downloads the selected items with ID, title, status, author, dates, categories, link and word count.

  • PHP Users

    Export Users to CSV

    Adds an "Export CSV" button to the Users screen that downloads users with their name, email, role and registration date.

  • PHP WooCommerce

    Export a Stock Report to CSV

    Adds a one-click stock report download under WooCommerce > Stock report, listing every product and variation with SKU, stock status, quantity and price.

  • PHP Media

    Export the Media Library List to CSV

    Adds an "Export to CSV" bulk action to the Media Library list view that downloads the selected files with their URL, title, alt text, caption, type, size, dimensions and upload date.

  • PHP Redirects

    Redirects From a CSV File

    Reads redirect rules from a redirects.csv file in wp-content, one "old path, new address, status" line each, so you can manage hundreds of redirects in a spreadsheet without a plugin.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.