Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jsoningram/form-to-disk/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
f2d
WordPress plugin to write form submissions to file and email the file using wp_cron
Form Action
marker is a hidden field used to prevent other forms from writing data to file
function formToDisk() {
var firstName = $('#name').val();
var lastName = $('#surname').val();
var email = $('#email').val();
var marker = $('#marker').val();
var data = {
marker: marker,
email: email,
firstName: firstName,
lastName: lastName,
action: 'form_to_disk'
};
if (firstName && lastName && email) {
$.ajax({
type: 'POST',
url: ajaxUrl',
data: data,
error: function() {
// handle error
},
success: function(data) {
// handle success
}
});
}
}