回答
這可能是你在找什麼:http://codex.wordpress.org/Plugin_API/Action_Reference/user_register
對於多站點WordPress的我也用了「wpmu_activate_user」行動。
不是不是真的。如果用戶是註冊,我需要user_register。但是,如果他註冊了,他還沒有被激活。首先當他點擊激活錯誤中的鏈接時,他被激活。就在這一點上,我的插件應該做一些事情....不要早,不要晚。 – 3cees 2011-04-26 18:13:27
不是。當user_register觸發時,它們*被激活。如果你轉到我給你的鏈接,你會發現這種情況發生在「添加到數據庫後立即發生」。用戶在激活之前不在wp_users表中,並且沒有user_id。未激活的註冊信息位於wp_signups表中。 – Greg 2011-04-26 18:18:05
不是。這是錯誤的。用戶在註冊後直接添加到wp用戶。沒有表wp_signups。他們也會在註冊後直接獲得用戶ID。我只是做了一個測試。 – 3cees 2011-04-26 18:26:15
這可能是遲到了,但我想點personal_options_update
將解決您的問題。
可以使用這個喜歡用一些掛鉤:
action('personal_options_update', 'update_pass_meta');
// update user meta during profile update
function profilescreen($user, $pass1, $pass2){
$currnt_user = wp_get_current_user();
$userid = $currnt_user->ID;
update_user_meta($userid, '_temp_user_pass', $pass2);
}
function update_pass_meta() {
add_action('check_passwords','profilescreen', 10, 3);
}
問候,
- 1. 帳戶激活PHP
- 2. 激活和停用帳戶
- 3. 註冊後激活用戶帳戶
- 4. 取消激活postgres用戶帳戶
- 5. 如何激活AdSense帳戶?
- 6. PHP帳戶激活邏輯
- 7. Authlogic帳戶激活軌道
- 8. PHP帳戶激活問題
- 9. 如何更改wordpress激活頁面上的「激活您的帳戶」消息?
- 10. 識別用戶何時激活了帳戶(已驗證的帳戶)
- 11. 刪除所有未激活的帳戶
- 12. 未激活帳戶的HTTP狀態碼?
- 13. 在Wordpress上註冊帳戶後沒有發送激活鏈接
- 14. 發送用戶激活電子郵件的新帳戶
- 15. 取消激活帳戶不工作
- 16. IdentityServer:帳戶激活後登錄
- 17. 多商店,prestashop手動激活帳戶
- 18. PHP激活用戶
- 19. Asp.Net Mvc4 WebSecurity如何激活或關閉用戶帳戶
- 20. Shopify創建用戶帳戶需要激活有時
- 21. WSO2 Identity Server取消激活用戶帳戶
- 22. 在asp.net中手動激活用戶帳戶
- 23. 獲取新用戶帳戶的用戶名到django-registration的激活郵件中?
- 24. 爲什麼Django註冊使用「激活窗口」來激活帳戶?
- 25. Magento:如何手動激活客戶帳戶
- 26. WordPress的AdSense帳戶
- 27. wordpress用戶帳戶的複製
- 28. gsutil使用gcloud激活服務帳戶的問題
- 29. 檢查用戶是否激活了他/她的帳戶的最有效方法?
- 30. 使用離子驗證激活帳戶後自動登錄
我工作的一個遊戲化WordPress插件,並一直在尋找同樣的事情時,我發現這篇文章。還沒有測試,但我希望它能起作用。 [文章鏈接](http://wordpress.stackexchange.com/questions/15683/wordpress-hook-for-user-account-activation-in-normal-wp-not-mu) – tsergium 2012-10-17 12:39:50