Skip to content

Instantly share code, notes, and snippets.

View asugrad's full-sized avatar

Michael ONeil asugrad

View GitHub Profile
@asugrad
asugrad / functions.php
Last active February 16, 2024 14:29
WordPress Ninja Forms Export Submissions to CSV
/**
* WP CLI custom command to export a form submsissions from Ninja Forms
* The to_csv function will create a 'reports' directory
* if it does not exist and create a datetime stamped csv
*
* ## OPTIONS
*
* <id>
* : The form id.
* <send_to_sftp>