Import post meta filter

bh_sl_import_post_meta

Description

Filter the array of arguments used for importing locations via the custom WP-CLI command. The arguments array includes column mapping and CSV file settings. It’s also possible to use this filter to do something with each location’s as it is being imported. Cardinal itself uses this filter to geocode the location as it’s imported.

Parameters

NameTypeDescription
$post_metaarrayThe array of post meta keys and the current values for each of them.
$post_idintegerThe current post ID that was just created within the import loop.
$postarrayThe current post data that was just created within the import loop formatted as an array.
$location_dataarrayThe current CSV row’s data.

Example