wc_importer_wordpress_mappings()
Add mappings for WordPress tables.
No Hooks.
Returns
Array.
Usage
wc_importer_wordpress_mappings( $mappings );
- $mappings(array) (required)
- Importer columns mappings.
Changelog
| Since 3.1.0 | Introduced. |
wc_importer_wordpress_mappings() wc importer wordpress mappings code WC 10.3.5
function wc_importer_wordpress_mappings( $mappings ) {
$wp_mappings = array(
'post_id' => 'id',
'post_title' => 'name',
'post_content' => 'description',
'post_excerpt' => 'short_description',
'post_parent' => 'parent_id',
);
return array_merge( $mappings, $wp_mappings );
}