WC_Admin_Importers::register_importers()
Register WordPress based importers.
Метод класса: WC_Admin_Importers{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Admin_Importers = new WC_Admin_Importers(); $WC_Admin_Importers->register_importers();
Код WC_Admin_Importers::register_importers() WC Admin Importers::register importers WC 9.3.3
public function register_importers() { if ( Constants::is_defined( 'WP_LOAD_IMPORTERS' ) ) { add_action( 'import_start', array( $this, 'post_importer_compatibility' ) ); register_importer( 'woocommerce_product_csv', __( 'WooCommerce products (CSV)', 'woocommerce' ), __( 'Import <strong>products</strong> to your store via a csv file.', 'woocommerce' ), array( $this, 'product_importer' ) ); register_importer( 'woocommerce_tax_rate_csv', __( 'WooCommerce tax rates (CSV)', 'woocommerce' ), __( 'Import <strong>tax rates</strong> to your store via a csv file.', 'woocommerce' ), array( $this, 'tax_rates_importer' ) ); } }