跳到内容

WPVN Unload Hooks

v0.9.2

Trân Minh-Quân · 2009年4月22日 上架

This plugin helps you know how hooks are called and let you unload actions/filters (this is useful when you want to unload, not deactive, plugins base …

正在使用
10 以下
评分
暂无
累计下载
1,384
最近更新
2009年5月11日
需要 WordPress 2.0+已测试到 2.8

截图

Listing (WordPress 2.8)
Listing (WordPress 2.8)
Simple Removing (WordPress 2.8)
Simple Removing (WordPress 2.8)
Array Removing (WordPress 2.8)
Array Removing (WordPress 2.8)

This plugin is destined to advanced users.

How to use?

You just need to activate the plugin. Nothing changes for this release. You have now two additional functions: cr_hook_remove($hooks_to_find = array(), $exact = false, $display = true, $detail = false) cr_hook_list($hookname = array(), $display = true, $detail = false) {

These functions are case-sensitive for actions/filters’ names.

The function to remove actions/filters (cr_hook_remove) you should call before the hooked is made, or you cannot remove it. The best place is in functions.php of the theme, or even better, directly in the plugin file ‘wpvn-unload-hooks.php’. (Be aware that calling in the plugin file should not print any output or you will mess up with Response HTTP header). The function to list hooks and hooked actions/filters, you can call anywhere you want.

Example

cr_hook_list(); shows you everything. cr_hook_list(‘wp_head’); shows you actions/filters that are hooked to ‘wp_head’ cr_hook_remove(); nothing happens, lose your time. cr_hook_remove(‘AJAX’); All actions/filters have that string in their names will be removed. cr_hook_remove(‘AJAX’, true); All actions/filters have the exact name ‘AJAX’ will be removed.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums