wc_importer_wordpress_mappings( array $mappings )
Add mappings for WordPress tables.
Description Description
Parameters Parameters
- $mappings
-
(Required) Importer columns mappings.
Return Return
(array)
Source Source
File: includes/admin/importers/mappings/wordpress.php
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 );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |