0

This kind of issue was already discussed here, but the question is 10 yo and none of the answers work, obviously.

Basically, Wordpress already have the function written in /wp-includes/user.php, which is send_confirmation_on_profile_email(), but for some reason it's not an "option" in the settings, or am I missing something?

As far as I know, the confirmation sent to change the profile email is an 'admin-only' thing. Is there any way to make it work for users too? I'm using Wordpress update 6

Thanks in advance

1 Answer 1

1

As far as I know, the confirmation sent to change the profile email is an 'admin-only' thing. Is there any way to make it work for users too? I'm using Wordpress update 6

As far as I understand, this was additionally implemented, in ticket #16470 few years ago, for all single site users that try to change their own email address.

7
  • following the changelog of the various updates, yes they moved this function from ms.php to user.php, yet there is still no function neither a setting for single site that let you choose that, it's just an automatic email update within the account details page. meanwhile, admin email change works just right and you will receive an email to confirm the updated infos
    – mnrlab
    Jun 6, 2022 at 15:28
  • It's hooked into personal_options_update action here and I don't see any admin-only user capability checks in /wp-admin/user-edit.php that would prevent this from running on all users updating own email and I would expect the current user be able to successfully go through the edit_user check there on the current user .
    – birgire
    Jun 6, 2022 at 16:19
  • The unit tests are here:
    – birgire
    Jun 6, 2022 at 16:19
  • 1
    thank you, I'll take a look at that and update the question accordingly
    – mnrlab
    Jun 6, 2022 at 17:11
  • I took a look at everything linked, and it seems like they really made the send_confirmation.. an "option", yet I can't find a solution to make it work instead of the function actually sending the email to users, which is send_email_change_email(). Am I missing a setting? or am I delusional?
    – mnrlab
    Jun 7, 2022 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.