Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @guardiano78

    Add this code to make the add-on section show when importing WooCommerce Customers:

    function wpai_pmxi_my_addon_visible_template_sections( $sections, $post_type ) {
        if ( 'shop_customer' == $post_type ) $sections[] = 'featured';
        return $sections;
    }
    
    add_filter( 'pmxi_visible_template_sections', 'wpai_pmxi_my_addon_visible_template_sections', 11, 2 );

    And for the “run” command, use “shop_customer” as the post type, e.g.:

    $my_addon->run(
    	array(
                 "post_types" => array( "shop_customer" )
    	)
    );
    Thread Starter guardiano78

    (@guardiano78)

    Great! thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add-on for woocommerce customers import’ is closed to new replies.