This is done with the register_new_user filter:
// Replace the default new user notification
remove_action('register_new_user', 'wp_send_new_user_notifications');
add_action('register_new_user', 'my_new_user_email');
You have to remove the default action and register the new function:
Create a new function that builds and sends the message.
function my_new_user_email($user_id, $deprecated = null, $notify = 'user') {
// create the message
$message = "Hello new user!";
// Send the email
wp_mail(get_userdata($user_id)->user_email, 'Custom Subject', $message);
}
This is placed in the functions.php file of your Child Theme (not the main theme, as any theme update will overwrite your changes).
Make the desired changes to the message text. Add headers to allow for an HTML message. (Lots of googles/bings/ducks on how to do that.)
Related Posts:
- How to change the default registration email ? (plugin and/or non-plugin)
- How to add a new product type on woocommerce product types? [closed]
- Updating WordPress overwriting customization tweaks – strategies?
- How to customize the default HTML for WordPress Attachments
- Customizing the Subject Field in WordPress’ Notification Emails?
- wp_trim_words() does not trim the_content() in WordPress
- page_template toggle between 2 templates + 2 permalinks for same post
- Make page template that is just an “include” of another?
- Custom php file in wordpress
- Selecting An image from the Media LIbrary on the frontend
- WordPress Template not affecting the working, keeps defaulting to the index.php template
- Recommend an open source, template driven website builder UI that produces a working WordPress site [closed]
- For custom templates, is it better to use `template_include` or `type_template`?
- How to pass external variables to the wp_new_user_notification_email filter?
- Create default_content layout template based on post id
- Remove template drop down for certain pages
- How do I add a new template to my site
- Send a custom WooCommerce email when custom order change [closed]
- How to change email address used for registrations?
- What’s wrong with Customizing new user notification email by add_filter?
- How to customize core admin pages within a theme?
- How can I make site-wide content editable, for example footer content
- Query post for ‘selected category’ in archive.php
- Showcase elementor templates
- How to get custom page template being edited in gutenberg editor
- Make custom page look exactly as homepage
- Best practice – pages – ACF or inline coding
- Set Title from Custom Template
- How to hook up search results page to a back-end page?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Is there a way to by-pass the pagination function on one custom template?
- Editing a post template
- WordPress archive index page
- How to add custom ‘layout’ buttons to wordpress editor?
- How to create custom layouts and static pages in themes for clients
- Custom Content Page
- Create a Page template selector page
- Creating custom page template
- Force WordPress to load a specific template
- Dynamic Sidebars based on page name
- Translate custom template with WPML
- How To make Custom page of every Category
- customer specific email attachment
- why won’t my custom css load with the enqueue method or any other method?
- mailchimp integration on a custom footer
- Conflict between Yoast SEO and my custom theme
- How to add a template – so that i can choose a different menu for some pages
- How can I delete the word `Category:` from page titles? [duplicate]
- How can I add category variable inside posts?
- Why does a custom php code inside a custom template not get executed?
- wordpress custom posts page not showing
- How do I target this page specifically?
- How to use a custom playlist template:
- Send default WooCommerce email when switching from custom order status
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Displaying Child Page’s Information
- Getting a jQuery library to work in WordPress & Avada
- How to send email with wp_mail() with from email taken from contact form instead of the host?
- Use another theme template in my theme
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- Allow arbitrary text after page URL
- Taxonomy template by post type
- Best way to create a page outside of the pages list
- Template setting is not saving in wordpress
- Custom WP deactivate an email activation link sent to user’s email.
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- Custom single page based on which custom page template is selected
- Single page template
- Adding css and js to a blank page created with custom template
- Modifying a local template
- Custom template not working for existing pages [closed]
- Admin new order email customization
- How to apply styles to the custom page template
- Woocommerce send custom email receipt based on product attribute
- Create a page for each database table entries
- How can I add interactive python console to my website? [closed]
- Show “Read more” link only when inserted manually
- create Custom field for tv series
- Data won’t save if metabox within conditional in admin. What am I missing?
- Restrict Viewing of post on both front and backend?
- Custom select query two tables by a meta key
- Date Ordered Archive Page for single category?
- GUID URL Question
- Add array of post id’s to a category?
- How to create social Share Buttons Without Plugin
- How can I style the Comment Section of a blog post
- Custom Avatars for WordPress Comments VIA Website URL?
- How to customize theme?
- Creating Action Hooks For Automatic File Inclusion
- Customizing the built-in Media Playlist
- show Visual form builder in the front end
- why is this content-template not showing any of my blog-entries?
- To merge customized codes upon wordpress update
- Custom image sizes ignored in WP 3.5
- Document.body.scrollTop in WordPress
- Custom Slider Per Page created
- Integrate Woocommerce to a custom theme
- Best way to modify theme
- How to move a widget below the menu in a sidebar in twenty thirteen?
- Where did I put this one line of css?