WP Hooks Finder

描述

Everything on WordPress depends on the action and filter hooks. And they are the backbone of WordPress. You can enhance or customize any WordPress functionality by using these hooks. If you look at any WordPress page or post, they appear through the combination of action & filter hooks.

If you want to customize any functionality, whether it comes from a theme or plugin, you can customize it using their action and filter hooks without touching the core files. But sometimes, it is really hard to find what action or filter hooks you have to use to customize the functionality according to the need.

This plugin will solve your problem and display all the action and filter hooks of any page, post, widget header, footer, or anything appearing on your screen. So you can easily find what action and filter you have to use to add or customize the functionality.

Once you have installed the plugin, a menu “Hooks Finder” will appear on top of the admin bar. You can view all the action and filter hooks that are running on your WordPress page, including header, footer, widgets, etc.

螢幕截圖

  • Menu Options
  • Display Actions & Filters

安裝

To add a WordPress Plugin using the built-in plugin installer:

Go to Plugins > Add New.

  1. Type in the name \”WP Hooks Finder\” in Search Plugins box
  2. Find the \”WP Hooks Finder\” Plugin you wish to install.
  3. Click Install Now to install the WordPress Plugin.
  4. The resulting installation screen will list the installation as successful or note any problems during the install.
    If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.

常見問題

How to use this plugin?

Just after installing WP Hooks Finder, A new menu “WP Hooks Finder” will be added in your wordpress admin bar where you can display all the hooks and filters

評價

2023年12月24日
I’m creating a plugin and looking for the actions/filters hooks that WordPress will be use in a page. I don’t know what are available or in use until I found THIS plugin!! It’s very helpful and easy to use. However there is some little thing I think you can improve or maybe add to new feature. It is tracing hooks usage with switch on & off. You current list is listing hooks in use for a page, or request but if that page is working and redirect, everything is gone. Tracing hooks on & off option can help about this. (Don’t forget to delete option you created on uninstall the plugin if you did.)
2023年1月30日
I was going to write something myself but after this great work I stopped. One thing that would be nice, would be the ability to filter out certain hooks/filters only. In my case I want to see the WooCommerce hooks/filters only, that would be really cool to have. Thanks!
閱讀全部6個評價

貢獻者及開發者

“WP Hooks Finder” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Hooks Finder 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3.1

  • FIX – Resolved issue where some of the CSS was removed on pages

1.3

  • NEW – New Look & Feel
  • NEW – More detailing in each action & fiter hooks
  • NEW – Highlight the active action & filter hooks
  • FIX – Filter hooks was not displaying properly
  • FIX – Hooks were overlapping

1.2.5

Compatible with WordPress v6.5+

1.2.4

Tested up to latest WordPress

1.2.3

  • NEW – Show Only Action OR Filter Hooks, instead of both
  • NEW – Translation Support
  • NEW – Added google search link to each action and filter hooks
  • IMPROVEMENT – Color scheme

1.2.2

Compatible with WP v6.1.1

1.2.1

Compatible with WP 6.0

1.2

  • FIX – Change colors & fonts of hooks result
  • FIX – Not working well with query string in url
  • FIX – Styling not working for admin area

1.1

  • FIX – Colors is applying on others menu too.
  • FIX – Correct menu label name.

1.0

  • Initial release.