• Resolved BearIT

    (@bearit)


    Hi,
    we have a woocommerce site where the fields user_login, user_nicename and display_name are often just numbers because they are imported from another software.

    When I try to make an export these fields are automatically converted to date format.
    Is there a way to avoid that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @bearit,

    Yes sure, you have to use this filter, something like it:

    add_filter( 'acui_export_non_date_keys', 'exclude_date_keys', 10, 1 );
    function exclude_date_keys( $keys ){
    $keys[] = 'user_login';
    $keys[] = 'user_nicename';
    $keys[] = 'display_name';
    
    return $keys;
    } 
    Thread Starter BearIT

    (@bearit)

    I’ve found a temporary solution:
    I’ve edited the export class and added the columns to the $non_date_keys array.

    I think they should be added permanently to the plugin or we should have an option to select wihch columns should not be parsed as datetime.

    Plugin Author Javier Carazo

    (@carazo)

    I will add all those keys to avoid it.

    Anyway, this filter I prepared is a solution also.

    Plugin Author Javier Carazo

    (@carazo)

    Update and you will have it included 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Export ID converted to datetime’ is closed to new replies.