Hooks Reference is a WordPress admin plugin that scans all installed plugins to discover where WordPress hooks (add_action, do_action, add_filter, apply_filters) are used. It provides a UI to view and filter these hooks by plugin and hook type.
Warning: This is an experimental plugin I created entirely using Cursor. Even this document was added by Cursor—except for this warning. No coding involved. You might notice a few small bugs here and there.
- Scans all installed plugins for WordPress hooks
- Filters hooks by plugin, type, and name
- Caches results for better performance
- Automatic cache clearing when plugins are updated
- Modern React-based admin interface
- Clone this repository into your WordPress plugins directory:
cd wp-content/plugins
git clone https://github.com/moon0326/wp-hooks-reference.git- Install PHP dependencies:
cd wp-hooks-reference
composer install- Install JavaScript dependencies:
npm install- Build the frontend assets:
npm run build- Activate the plugin through the WordPress admin interface.
- Navigate to the "Hooks Reference" menu item in the WordPress admin sidebar.
- Use the filters to narrow down the list of hooks:
- Filter by plugin
- Filter by hook type (action or filter)
- Search by hook name
- Click the "Refresh Hooks" button to clear the cache and rescan all plugins.
Run composer install
The frontend is built with React and uses @wordpress/scripts for development. To start development:
npm startThis will start a development server with hot reloading.
To build for production:
npm run buildContributions are welcome! Please feel free to submit a Pull Request.
