About WordPress Hooks Explorer
WordPress Hooks Explorer is a powerful Python-based tool designed to help WordPress developers easily navigate and understand the hooks (actions and filters) available in the WordPress core. It generates a comprehensive, interactive static HTML website for exploring WordPress hooks.
Key Features
- Comprehensive Hook Discovery - Scans WordPress core files to identify all available hooks
- Interactive Web Interface - User-friendly interface to explore and search hooks
- Detailed Hook Information - Displays hook details including name, type, file location, line number, and PHPDoc comments
- Advanced Search & Filtering - Utilizes DataTables for enhanced searching, sorting, and pagination
- Individual Hook Pages - Dedicated pages with parameter information and documentation
- Responsive Design - Optimal viewing experience on desktop, tablet, and mobile devices
- Syntax Highlighting - PrismJS integration for beautiful PHP code display
- Static Generation - Fast, lightweight static HTML output
How It Works
- WordPress Core Download - Automatically downloads WordPress core files if not present
- PHP File Scanning - Uses advanced regex pattern matching to identify hook calls in all PHP files
- Documentation Extraction - Extracts PHPDoc blocks and parameter information from hook definitions
- HTML Generation - Creates a professional, interactive website using Jinja2 templating
- Asset Management - Automatically copies and organizes CSS/JS assets for optimal performance
Technical Architecture
Backend (Python)
- File Scanner - Regex-based hook detection
- HTML Generator - Jinja2 templating engine
- Resource Manager - Asset copying and organization
- Data Models - Structured hook and parameter representation
Frontend (Static HTML)
- Bootstrap 5 - Responsive UI framework
- DataTables - Advanced table functionality
- PrismJS - Syntax highlighting for PHP code
- jQuery - Interactive functionality
What You'll Get
- Main Index - Searchable table with thousands of WordPress hooks featuring full DataTables functionality
- Individual Hook Pages - Detailed information for each hook including:
- Hook type (Action/Filter)
- File location and line number
- Complete PHPDoc documentation with syntax highlighting
- Parameter information with types and descriptions
- Professional Design - Clean, modern interface built with Bootstrap 5 and responsive design principles
- Advanced Search - Page length controls, full search functionality, column sorting, and responsive design
- Changelog - Automatically generated changelog page showing development history from git commits