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
Name | Type | Description |
---|---|---|
$post_meta | array | The array of post meta keys and the current values for each of them. |
$post_id | integer | The current post ID that was just created within the import loop. |
$post | array | The current post data that was just created within the import loop formatted as an array. |
$location_data | array | The current CSV row’s data. |