remove_all_actions

函式
remove_all_actions ( $hook_name, $priority = false )
引數
  • (string) $hook_name The action to remove callbacks from.
    Required:
  • (int|false) $priority Optional. The priority number to remove them from. Default false.
    Required:
    Default: false
返回值
  • (true) Always returns true.
定義位置
相關方法
remove_actionremove_allowed_optionsremove_all_filtersremove_accentsget_alloptions
引入
2.7.0
棄用
-

remove_all_actions: 這個函式是用來刪除所有使用add_action函式新增到鉤子上的動作: 當你想刪除一個鉤子上的所有動作時,這個函式很有用。

從一個動作鉤子中刪除所有的回撥函式。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function remove_all_actions( $hook_name, $priority = false ) {
return remove_all_filters( $hook_name, $priority );
}
function remove_all_actions( $hook_name, $priority = false ) { return remove_all_filters( $hook_name, $priority ); }
function remove_all_actions( $hook_name, $priority = false ) {
	return remove_all_filters( $hook_name, $priority );
}

常見問題

FAQs
檢視更多 >