• Resolved Jpyper

    (@jpyper)


    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

    https://www.ads-software.com/extend/plugins/welcome-email-editor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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..

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

    Thread Starter Jpyper

    (@jpyper)

    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.

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: SB Welcome Email Editor] Disable New User Notifications to User’ is closed to new replies.