How to defer or async javascript or CSS resources in WordPress.
Change WordPress Email default From Name and Email address
/** * change WordPress default FROM Name and Email address **/ add_filter(‘wp_mail_from’, ‘new_mail_from’); add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’); function new_mail_from($old) { $email = get_option( ‘admin_email’ ); return $email; //return any email you want
Send HTML Emails Using wp_mail Function
WordPress’s wp_mail()
function default content type is text/plain
which does not allow using HTML. To send HTML emails you need to set the content type of the email to text/html
by using the wp_mail_content_type
filter. This is how you can do that