Allow SVG Uploads in WordPress
This WordPress snippet enables administrators to easily upload SVG files, providing f...

WPCodeBox
545
Learn how to easily change the sender name and email address for outgoing WordPress emails. This snippet provides a simple solution to customize your WordPress email settings for improved branding.
/**
* Author: WP Turned UP
* Author URI: https://wpturnedup.com
*/
//// 1. Adjust the 'return '[email protected]';' entry as desired.
//// 2. Adjust the 'return 'FirstName LastName';' entry as desired.
//// ----------------- CODE SNIPPET IS BELOW THIS LINE - REMOVE THIS LINE AND ABOVE -----------------
// CHANGE THE EMAIL ADDRESS
function wptu_sender_email( $original_email_address ) {
return '[email protected]';
}
// CHANGE THE SENDER NAME
function wptu_sender_name( $original_email_from ) {
return 'FirstName LastName';
}
// APPLY THE FILTERS
add_filter( 'wp_mail_from', 'wptu_sender_email' );
add_filter( 'wp_mail_from_name', 'wptu_sender_name' );





