user_profile_update_errors

動作鉤子
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user )
引數
  • (WP_Error) $errors WP_Error object (passed by reference).
    Required:
  • (bool) $update Whether this is a user update.
    Required:
  • (stdClass) $user User object (passed by reference).
    Required:
定義位置
相關勾子
edit_user_profile_updateprofile_updateuser_profile_picture_descriptionedit_profile_urluser_row_actions
相關方法
wp_plugin_update_rowsget_core_updateswp_plugin_update_rowwp_theme_update_rowsrest_cookie_check_errorswp_update_user_counts
引入
2.8.0
棄用
-

“user_profile_update_errors” – 這是一個過濾器鉤子,允許修改在更新使用者配置檔案後顯示的錯誤。

在返回使用者資料更新錯誤之前執行。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );

常見問題

FAQs
檢視更多 >