WordPress.org

Forums

WP-Members
[resolved] Where to put hook for wpmem_email_notify (6 posts)

  1. smags3
    Member
    Posted 1 year ago #

    I want to add admin notifications when a user registers. I see that you can add the code found here http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_email_notify/.

    Question is - where in the plugin files do I add that code?

    Thanks for any help!

    Stacy

    http://wordpress.org/plugins/wp-members/

  2. respectyoda
    Member
    Posted 1 year ago #

    You should add the code to functions.php.

    Side note: never edit the plugin files themselves because the changes you make to the plugin files will be overwritten when you update the plugin when a new version is released.

  3. smags3
    Member
    Posted 1 year ago #

    Where would you add the code in functions.php?

    Do I go to appearance/editor/functions.php and then...

    Thanks for any help!

  4. respectyoda
    Member
    Posted 1 year ago #

    Yes, you can use the editor that you can access via the appearance menu and just copy and paste the code.

  5. smags3
    Member
    Posted 1 year ago #

    Paste the code anywhere or should I be looking somewhere specific in functions.php?

  6. respectyoda
    Member
    Posted 1 year ago #

    You can put the code anywhere, but if you are not familiar with PHP then it is best to put it at the very bottom of the file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic