WP Manifestindependent plugin directory
manifest / forms / export

WPLF Export

Export form data from WP Libre Form.

★ 4stars
6.2kcomposer installs
1.0.1latest · 9 years ago

Install

Download source zip No release zip yet

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/libreform/export/archive/refs/heads/master.zip

On Packagist as k1sul1/wplf-export:

composer require k1sul1/wplf-export
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Export form submissions created by WP Libre Form.

This builds on a "new" feature added in WP 4.7 called bulk actions, and basically adds a new item to the bulk action menu.

Installation

The Composer Way (preferred)

Install the plugin via Composer

composer require k1sul1/wplf-export

How to use

Seriously? Select your forms, select Export from bulk action menu and press "Apply". For best results, select only one type of form for export.

for dummies

Customizing your export

You can add your own filters to be applied on all or invidual forms and get only the output you'll need. Note that invidual form filters work only when you spesify a form using the "Filter by form" field.

Filter fields:

add_filter('wplf_export_form_filter', function($filter_fn) {
  // Note that we're replacing $filter_fn entirely. Return a function!
  $fn = function($field_name) {
    return $field_name !== 'block_this_field';
  };

  return $fn;
});

add_filter('wplf_export_form_84_filter', function($filter_fn) {
  // Same thing.
});

Change delimiter (default: ','):

add_filter('wplf_export_form_delimiter', function($delimiter) {
  return '#';
});

add_filter('wplf_export_form_84_delimiter', function($delimiter) {
  return '#';
});

Change filename (default: wplf_export_TIMESTAMP.csv):

add_filter('wplf_export_form_{ID}_filename', ..);

New filters and features are subject to be added. PRs welcome!

Releases

1 release.

Tag
Published
1.0.1 latest
Jun 10, 2017 9 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.