function pmwi_pmxi_extend_options_main($entry) { if ($entry != 'product') { return; } $woo_controller = new PMWI_Admin_Import(); $woo_controller->index(); }
function pmwi_pmxi_extend_options_main($entry, $post = array()) { if ($entry != 'product' and empty($post['is_override_post_type'])) { return; } $woo_controller = new PMWI_Admin_Import(); $woo_controller->index($post); }
function pmwi_pmxi_options_tab($isWizard, $post) { // render order's view only for bundle and import with WP All Import featured if ($post['custom_type'] == 'shop_order' && class_exists('WooCommerce')) { $pmwi_controller = new PMWI_Admin_Import(); $pmwi_controller->options($isWizard, $post); } }