I could not change the sender name and email address at the admin-screen. What should I do?
If you'd like to change the email address for receiving contact emails
/* Copy and paste from here to functions.php. */
function apcf_custom_mail_from( $email ) {
return 'Enter your email address here';
}
add_filter( 'wp_mail_from', 'apcf_custom_mail_from' );
/* Copy and paste this to functions.php. */
If you'd like to change the sender name
/* Copy and paste from here to functions.php. */
function apcf_custom_mail_from_name( $email_from ) {
return 'Enter sender name here';
}
add_filter( 'wp_mail_from_name', 'apcf_custom_mail_from_name' );
/* Copy and paste this to functions.php. */
After copying and pasting above, please edit the "Please enter your email address here" and "Please enter your sender name here" parts.
( 2022/November/17, 20:48:24, JST )