wc_importer_wordpress_mappings( array $mappings )

Add mappings for WordPress tables.


Description Description


Parameters Parameters

$mappings

(Required) Importer columns mappings.


Top ↑

Return Return

(array)


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.