remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
function set_html_content_type() {
return 'text/html';
}
Simply paste above code in to your function.php file
Month: September 2013
How to change WordPress default FROM NAME
Simply paste the following snippet into your functions.php file
Don’t forget to put the desired FROM NAME on return
add_filter( 'wp_mail_from_name', 'my_mail_from_name' ); function my_mail_from_name( $name ) { return 'VENU'; }
How to change WordPress default FROM email address
WordPress is a very flexible blogging platform, but by default, you can’t modify the FROM email adress. If you want to be able to easily change it,
Simply paste the following snippet code into your functions.php file
add_filter( 'wp_mail_from', 'my_mail_from' ); function my_mail_from( $email ) { return 'examplemail@mail.com'; }
How to Change the Login Logo URL in WordPress
Default the login logo url points to WordPress.org. If you have a custom WordPress login logo, or a completely custom WordPress login page design, then you should probably change the login logo url to your main site or anything that you think is more relevant.
All you have to do is simply paste the codes below in your theme’s functions.php file:
<?php add_filter( 'login_headerurl', 'custom_logo_url' ); function custom_logo_url($url) { return 'http://example.com'; } ?>