Server IP : 104.21.14.103 / Your IP : 18.119.139.219 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 : /proc/self/root/proc/thread-self/root/proc/thread-self/root/home/giankuin/khowordpress.com/wp-content/plugins/woocommerce/includes/admin/importers/mappings/ |
Upload File : |
<?php /** * Generic mappings * * @package WooCommerce\Admin\Importers */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Add generic mappings. * * @since 3.1.0 * @param array $mappings Importer columns mappings. * @return array */ function wc_importer_generic_mappings( $mappings ) { $generic_mappings = array( __( 'Title', 'woocommerce' ) => 'name', __( 'Product Title', 'woocommerce' ) => 'name', __( 'Price', 'woocommerce' ) => 'regular_price', __( 'Parent SKU', 'woocommerce' ) => 'parent_id', __( 'Quantity', 'woocommerce' ) => 'stock_quantity', __( 'Menu order', 'woocommerce' ) => 'menu_order', ); return array_merge( $mappings, $generic_mappings ); } add_filter( 'woocommerce_csv_product_import_mapping_default_columns', 'wc_importer_generic_mappings' );