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

    (@wisdmlabs)

    Hi a42,

    There is no hook used here. You will have to make changes to admin_email, which is currently the site email address.

    Thread Starter a42

    (@a42)

    so what I could do instead is to override the admin_email but how ?

    Thread Starter a42

    (@a42)

    I have tried to update the admin_email by these steps:

    function enquiry_to_vendor( $email ) {
    global $product;

    $vendors = get_product_vendors( $product->id );

    if( $vendors ) {
    foreach( $vendors as $vendor ) {
    $email = $vendor->paypal_email;
    }
    return $email;
    }

    }

    function vendor_admin () {
    if( is_page(‘product’)) {
    add_filter( ‘pre_option_admin_email’, ‘enquiry_to_vendor’ );
    }
    }

    add_action( ‘init’, ‘vendor_admin’ );

    But it is still the site admin email which appears in the variable wdm_admin_email…

    What to do ?

    Cheers,
    Adam

    Thread Starter a42

    (@a42)

    Hi there,

    I did manage to change – dynamically – the wdm_admin_email variable but where can change the variable wdm_form_dataset[user_email] ?

    Cheers,
    Adam

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to overwrite the reciever's email address?’ is closed to new replies.