• Resolved therealgilles

    (@chamois_blanc)


    Hello, is there a way to anonymize first/last names and emails for an export?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    It’s possible using php code.

    more details https://docs.algolplus.com/algol_order_export/hooks-filters/

    you should add php code to section Misc Settings (at bottom)

    Thread Starter therealgilles

    (@chamois_blanc)

    Thank you, this is helpful!

    Plugin Author algol.plus

    (@algolplus)

    please, share final php code if you can

    Thread Starter therealgilles

    (@chamois_blanc)

    Here is what it looks like. md5 is good enough for my purpose.

    // Billing
    add_filter( 'woe_get_order_value_billing_first_name', function ( $value, $order, $fieldname ) {
    return md5( $value );
    }, 10, 3);
    add_filter( 'woe_get_order_value_billing_last_name', function ( $value, $order, $fieldname ) {
    return md5( $value );
    }, 10, 3);
    add_filter( 'woe_get_order_value_billing_email', function ( $value, $order, $fieldname ) {
    return md5( $value );
    }, 10, 3);

    // Order number
    add_filter( 'woe_get_order_value_order_number', function ( $value, $order, $fieldname ) {
    return md5( $value );
    }, 10, 3);
    Plugin Author algol.plus

    (@algolplus)

    ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.