WordPress.org

Ready to get started?Download WordPress

Forums

SB Welcome Email Editor
[resolved] Disable New User Notifications to User (4 posts)

  1. Jpyper
    Member
    Posted 2 years ago #

    Hi Sean. I'm loving the plugin, but I've only got one problem with it.

    I need to disable new user notifications being sent out. I'm recreating an existing site in WordPress and need to preload users before launch but I need to manually send them new login info after the launch, not before.

    It should be simple to disable this. I tried doing it myself in functions.php by overriding the wp_new_user_notification plugin (from pluggables.php) but I got an error saying it was already declared in sb_welcome_email _editor.

    Thanks

    http://wordpress.org/extend/plugins/welcome-email-editor/

  2. Sean Barton
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Jpyper,

    You are more or less there. Overriding that function is the ONLY way to do it. You just need to make sure it gets loaded first. You need to create a new plugin with the letter A at the start of the directory name as plugins are loaded in alphabetical order.

    Use this blog post with example code inside it..

    http://www.sean-barton.co.uk/2012/09/turning-user-notification-wordpress/

  3. Jpyper
    Member
    Posted 1 year ago #

    Thanks Sean. Ultimately what I didn't realize was that pluggable functions could only be overrode by plugins and not just through functions.php. That makes sense about loading order with plugins, useful information thanks.

  4. Sean Barton
    Member
    Plugin Author

    Posted 1 year ago #

    Yes it's depressing that they do it this way isn't it. Conflicts would be much easier to sort by adding a priority to the action or filter wouldn't they.

    thanks
    S

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.