wpsl_single_location_export_data

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

Description

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.

Parameters

$post_meta - (array) The collected meta data.

$post_id - (integer) The post ID.

Usage

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

Changelog

Since 2.2.15

Source File

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

Placement

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