Linux 软件免费装
Banner图

Show Hooks

开发者 rafiq91
exlac
更新时间 2022年2月7日 00:31
捐献地址: 去捐款
PHP版本: 4 及以上
WordPress版本: 5.9
版权: GPLv3
版权网址: 版权信息

标签

debug action filter hooks hooksequence

下载

0.4 0.1.4 0.3 0.1.0 0.1.1 0.1.2 0.1.3 0.1.5 0.1.6 0.2

详情介绍:

A sequential and visual representation of WordPress action and filter hooks. Up until now, the way theme and plugin developers find where to hook into with their add_action() and add_filter() functions is either to search through the WordPress codebase or find a reference to the hook in the codex. What Show Hooks does is give you a simpler way to see these hooks by displaying them in-line on the page that you are on. All that's left to do then is copy the hook you need, and paste it into your add_action and add_filter functions like this: add_action( 'wp_enqueue_scripts', 'my_enqueue_scripts_action' ); add_filter( 'the_title', 'my_the_title_filter' ); I made this plugin so I could find WordPress hooks quicker and I use it all the time, so I thought I'd share it and see if it could help others. Enjoy!😇 Please note that in odd cases, due to the nature of actions and filters, the plugin may display a hook in place that disrupts the display of your site - in which case we always display the 'Hide Hooks' button so you can switch it back off. This won't disrupt the look of your site to anyone but you so don't worry.

安装:

  1. Install either via the WordPress.org plugin directory or by uploading the files to your server.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Once the plugin is activated you will see 'Show Hooks' in the Admin Bar at the top of your site or admin pages.
  4. Clicking the 'Show Hooks' button will start showing you all the action hooks on the page you're on.
  5. You can continue to navigate around until you've found the action hook you're looking for, then switch off by clicking 'Hide Hooks'.
  6. Simple but effective. Enjoy!

屏幕截图:

  • Here you can see how you can quickly find any action hook by using Show Hooks while you're on any WordPress wp-admin page.
  • Here you can see Show Hooks doing its thing on any page of your website.

更新日志:

0.4 0.3 0.2 0.1.6 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0