• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Archives for wp_mail

wp_mail

Change the WordPress new user notification using the wp_mail filter

Chad Butler · Jul 11, 2016 ·

I have shown in the past how to change the WordPress new user notification by rewriting the wp_new_user_notification() function, which is a pluggable function.  But the transition from WP 4.2 to 4.3 showed why even pluggable functions can be problematic.  So here is a way to do it with a filter that almost no one knows about – wp_mail.  Continue Reading →

Add a file upload field to attach to admin notification email during registration

Chad Butler · Apr 21, 2015 ·

This tutorial will describe how to add a file upload field to the registration form and have the resulting file be sent with the admin notification email. 

Continue Reading →

Email users when a new post is published – opt-in/opt-out version

Chad Butler · Jun 9, 2013 ·

This code snippet is an extension of the email users when a new post is published snippet.  Like that snippet, this one comes from user requests.

The difference here is that we will only email users who have requested specifically to be notified of new posts, and we’ll allow them to opt-out of that process at a later date by updating their profile.  Continue Reading →

Email Admin When a User Updates Registration Data

Chad Butler · Apr 26, 2013 ·

Here’s a request I get from time to time – how can the admin receive email notification that a user updated their data, so I figured it is about time to put that together as a tutorial.

This one should be fairly straight forward and can be used cut-and-paste for the general features.  As usual, I’ve tried to comment the code so that you know what is happening where and more advanced users can build on this concept from there.  Continue Reading →

Email users when a new post is published

Chad Butler · Mar 19, 2013 ·

This tip is a request from a user.  I like user requests – that makes it easier to deliver the kind of tutorials users are looking for instead of things I just come up with on my own.

This particular tip will address how you can automatically send an email to all users when a post is published or updated. Continue Reading →

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy