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

    (@carazo)

    @champsupertramp,

    I have just updated this documentation: https://codection.com/import-users-csv-meta/listado-de-hooks-de-import-and-exports-users-and-customers/

    You can use this hook:
    $row = apply_filters( 'acui_export_data', $row, $user, $datetime_format, $columns, $order_fields_alphabetically );

    Thanks for using this plugin!

    Thread Starter Champ Camba

    (@champsupertramp)

    Hi @carazo

    Thanks for your help!

    Regards,

    Thread Starter Champ Camba

    (@champsupertramp)

    Hi @carazo

    I think I found a bug with the filter hook acui_export_data.

    When I try to modify a value with the filter hook, it doesn’t reflect the value for all the users.

    add_filter("acui_export_data","um_050621_unserialize_usermeta",99999, 5);
     function um_050621_unserialize_usermeta($row, $user, $datetime_format, $columns, $order_fields_alphabetically){
       
        $row['zendeh_mama'] = "Philippines";
    
        return $row;
    }

    The above code should make all users’ zendeh_mama values into “Philippines” but after the CSV file is generated, the zendeh_mama in each user row is still empty when opening the CSV file.

    Regards,

    Plugin Author Javier Carazo

    (@carazo)

    This hook is working inside the plugin. Maybe you are not using it correctly.

    Look at:

    function maybe_order_row_alphabetically( $row, $user, $datetime_format, $columns, $order_fields_alphabetically ){
    		if( !$order_fields_alphabetically )
    			return $row;
    
    		return array_merge( array_flip( $columns ), $row );
    	}
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot find a filter hook to modify the exporting user data’ is closed to new replies.