wc_importer_wordpress_mappings() WC 3.1.0
Add mappings for WordPress tables.
Хуков нет.
Возвращает
Массив.
Использование
wc_importer_wordpress_mappings( $mappings );
- $mappings(массив) (обязательный)
- Importer columns mappings.
Список изменений
С версии 3.1.0 | Введена. |
Код wc_importer_wordpress_mappings() wc importer wordpress mappings WC 5.0.0
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 );
}