1. Description
  2. Parameters
  3. Usage
  4. Changelog
  5. Source File
  6. Related


This filter allows you to add additional data to the CSV file that’s generated through the ‘Export Location Data’ button in the admin editor.

By default the CSV file contains data like the address, phone, email, url and the coordinates. But if you use plugins like Advanced Custom Fields, then you will have to add data from those fields yourself.


$post_meta - (array) The collected meta data.

$post_id - (integer) The post ID.


Replace ‘// Add additional data’ with your own code to add additional data from other sources.


Since 2.2.15

Source File

This filter is located in /admin/data-export.php.


The code needs to be placed in the functions.php file inside your active theme folder.