• Resolved Hogash

    (@hogash)


    Hi guys,

    Great plugin. Can you implement the filter added in WordPress 4.9 “wp_new_user_notification_email_admin”? I saw that you override the pluggable wp_new_user_notification function and this filter is missing.

    Best regards,
    Stefan

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    Thanks for your message.

    This is already available within BNFW. The notification you’re looking for is ‘New User Registration – For Admin’.

    Hope this helps.

    Thread Starter Hogash

    (@hogash)

    Hi,

    I know this, however, if i have a plugin that rely on that filter, it won’t work with your plugin. I would appreciate if you could add this default WP filter in your plugin.

    For the moment, i had to modify your plugin code.

    Best regards,
    Stefan

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    That’s true. I’ll add it to my to-do list to look at in the next version. Thanks!

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    Do you have an example plugin that doesn’t let BNFW currently override this notification? Would like to test with something.

    Thread Starter Hogash

    (@hogash)

    Hi,

    Just published the plugin we are using:

    https://wordpress.org/plugins/disable-new-user-registration-admin-emails/

    Let me know if you need anything else.

    Best regards,
    Stefan

    Plugin Author Jack – BNFW

    (@voltronik)

    Thanks @hogash,
    Are you aware of any other plugins that have this issue too? Interested to test with a plugin that has more installs at the moment.

    Thread Starter Hogash

    (@hogash)

    Hi,

    Unfortunately, not.

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    Ok, thanks. I’ll try your plugin and see how I get on.

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    The filter from 4.9 is now integrated into BNFW and will be available in a release soon however it would appear that your plugin tries to disable the admin emails by setting the ‘to’ field to false. This will be incompatible with BNFW (and possibly other plugins too) as when a user has an admin notification set, we will be changing the ‘to’ field based on the values that we have in the notification. BNFW allows you to disable the New User Registration – For Admin notification as native functionality anyway though so this may not be an issue.

    Just wanted to let you know.

    Thread Starter Hogash

    (@hogash)

    Hi,

    Thanks for the info. I am aware of this, however, it was the only way to disable the new user notification email without overriding the wp_new_user_notification pluggable function.

    Plugin Author Jack – BNFW

    (@voltronik)

    Hi @hogash,
    Ok, thanks.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘New filter added in WP 4.9’ is closed to new replies.