How can I remove the product short description from the WooCommerce Mails?
How can I remove the product short description from the WooCommerce Mails?
How can I remove the product short description from the WooCommerce Mails?
Email post to submitter
Try changing your headers from \n to \r\n Note from here that: Each line should be separated with a CRLF (\r\n). Lines should not be larger than 70 characters.
Using admin email in billing address
The filter for the Message that is sent to reset your password is retrieve_password_message. You use it like this: add_filter(‘retrieve_password_message’,’my_awesome_new_password_reset_email’,10,4); function my_awesome_new_password_reset_email($message, $key, $user_login, $user_data){ $message = “Hey, you need a new Password? Click here: “.site_url( “wp-login.php?action=rp&key=$key&login=”.rawurlencode( $user_login ),’login’).”!”; return $message; } $message is the original E-Mail Body, $key is the reset password key, $user_login … Read more
Try changing this: $name = $user->user_email; to this: $name = $user->first_name; And this: $phone = get_user_meta( $customer_id, ‘billing_phone’, true ); to this: $phone = get_user_meta( $user_id, ‘billing_phone’, true ); Did it work for you? Let me know! =)
I don’t know how I missed the answer, it’s way more simple than the stuff I was trying. From the docs: /* To use: 1. Add this snippet to your theme’s functions.php file 2. Change the meta key names in the snippet 3. Create a custom field in the order post – e.g. key = … Read more
I don’t know what the font is for the rest of the email but if you can discern that by examining one of the emails sent you’ll want to copy the style rule to this element: return $item_name . ‘<br><p class=”item-description”>’ . $excerpt ; ‘</p>’; As this is an email you’ll have to rely on … Read more
How to change a wordress plugin php code in my child’s functions.php file?
Function wp_mail() not suitable for use in a loop. Unfortunately, a loop iterating over and over hundreds of times could considerably slow down the script, as pointed out in the reference on the PHP_mail() function. It is worth nothing that the mail() function is not suitable for larger volumes of email in a loop. This … Read more