开发者

Wordpress hook/event/action for when a users updates it's email address

开发者 https://www.devze.com 2023-02-26 02:24 出处:网络
Is there any hook/event/action/method that fires when a user updates it\'s email address? I need to do certain actions from my plugin when a user updates it\'s email address.

Is there any hook/event/action/method that fires when a user updates it's email address? I need to do certain actions from my plugin when a user updates it's email address. Is there a way to check for that from my plugin witho开发者_运维百科ut altering Wordpress's core?


There's not a lot of information out there, but I think your best bet might be writing a custom function and use the profile_update hook to compare old data with new. If the current email is different than the old, you've got your solution.

Edit: Link to WordPress' Documentation

0

精彩评论

暂无评论...
验证码 换一张
取 消