Skip to content

Instantly share code, notes, and snippets.

@kevincolten
Created July 17, 2018 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevincolten/d04ccdb9bf0b2aee49aab06522324c56 to your computer and use it in GitHub Desktop.
Save kevincolten/d04ccdb9bf0b2aee49aab06522324c56 to your computer and use it in GitHub Desktop.
Export all form entries from WPForms
// Bookmarklet via https://mrcoles.com/bookmarklet/ (Add to bookmarks bar)
javascript:(function()%7BArray.from(document.querySelectorAll('.form-details-action-switch%20option')).slice(1).forEach(option%20%3D%3E%20window.open(%20option.getAttribute('value')%20%2B%20'%26export%3Dall%26'%20%2B%20document.querySelector('.form-details-actions-export').getAttribute('href').split('%26').find(str%20%3D%3E%20str.includes('_wpnonce'))%2C%20'_blank'))%7D)()
Array.from(document.querySelectorAll('.form-details-action-switch option'))
.slice(1).forEach(option => {
window.open(
option.getAttribute('value') +
'&export=all&' +
document.querySelector('.form-details-actions-export').getAttribute('href').split('&')
.find(str => str.includes('_wpnonce')
), '_blank')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment