set_current_user

動作鉤子
do_action( 'set_current_user' )

set_current_user 是一個WordPress函式,它將當前使用者設定為由給定的使用者ID指定的使用者: 這個函式用於設定需要以特定使用者身份執行的操作的使用者環境。

設定當前使用者後觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'set_current_user' );
do_action( 'set_current_user' );
do_action( 'set_current_user' );

常見問題

FAQs
檢視更多 >