personal_options

動作鉤子
do_action( 'personal_options', $profile_user )
引數
  • (WP_User) $profile_user The current WP_User object.
    Required:
定義位置
相關勾子
personal_options_updateprofile_personal_optionspopulate_optionsalloptionspre_option
相關方法
populate_optionsscreen_optionsget_alloptionswp_load_alloptionsexport_date_optionsremove_allowed_options
引入
2.7.0
棄用
-

personal_options”是一個鉤子,在顯示使用者資料的個人選項表格時被呼叫。它被用來在使用者資料的個人選項部分新增額外的表格欄位。

在使用者編輯螢幕上的“個人選項”設定表末尾觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'personal_options', $profile_user );
do_action( 'personal_options', $profile_user );
do_action( 'personal_options', $profile_user );

常見問題

FAQs
檢視更多 >