Server IP : 172.67.158.161 / Your IP : 3.145.37.251 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/thietke365.net/wp-content/plugins/woocommerce/includes/admin/importers/mappings/ |
Upload File : |
<?php /** * WordPress mappings * * @package WooCommerce\Admin\Importers */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Add mappings for WordPress tables. * * @since 3.1.0 * @param array $mappings Importer columns mappings. * @return array */ 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 ); } add_filter( 'woocommerce_csv_product_import_mapping_default_columns', 'wc_importer_wordpress_mappings' );