Import post meta filter



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.


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