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.
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.