current_action

函式
current_action ( No parameters )
返回值
  • (string) Hook name of the current action.
定義位置
相關方法
current_timecurrent_datetimecurrent_theme_infocurrent_user_canremove_action
引入
3.9.0
棄用
-

WordPress中的current_action函式是用來檢索當前在WordPress管理中執行的動作。它主要用於WordPress管理區,以確定當前正在執行的動作,如儲存一個文章或更新一個外掛。

檢索當前動作鉤子的名稱。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function current_action() {
return current_filter();
}
function current_action() { return current_filter(); }
function current_action() {
	return current_filter();
}

常見問題

FAQs
檢視更多 >