apply_filters( 'appthemes_importer_import_row_data', array $data )
Filters currently importing row data before insert in db.
Package
Description Description
The array structure is a little complex:
$data = array(
'post' => array(
'post_type' => string,
'post_status' => string,
'post_title' => string,
'post_content' => string',
'post_status' => string,
'post_author' => string,
'post_date' => string,
'post_name' => string,
// etc.
),
'post_meta' => array,
'tax_input' => array,
'tax_meta' => array(
'taxonomy1' => array(
'term1' = array(
'term_meta1' => mixed
'term_meta2' => mixed
),
),
),
)
Parameters Parameters
- $data
(array) An array of importing post data types with appropriate values.
- 'post'
(array) An array of elements that make up a post to insert by wp_insert_post(). - 'post_meta'
(array) Array of post meta values keyed by their post meta key. - 'tax_input'
(array) Array of taxonomy terms keyed by their taxonomy name. - 'tax_meta'
(array) An array of arrays of taxonomy term meta fields keyed by the term name, keyed by the taxonomy name.
- 'post'