# Hook Injector

**Inject custom Gutenberg blocks without writing code.**

Hook Injector is the sleek, no-fuss command center for injecting custom content into WordPress hooks, minus the code-cramping headaches. Whether you're a dev dodging theme updates or a site builder craving pixel-perfect placements, this plugin lets you harness the power of `add_action` without ever cracking open a text editor.

Just fire up the dashboard, drop your content into Gutenberg's intuitive playground, and hook it where it belongs—be it `wp_head` for scripts, `the_content` for inline magic, or any obscure callback from WooCommerce, Elementor, or your fave theme.

## Key Features

*   **No-Code Injections:** Whip up rich content with the full Gutenberg Block Editor—core blocks, third-party embeds, shortcodes, HTML snippets, you name it.
*   **Universal Compatibility:** Assign to any action hook with a simple dropdown or manual entry.
*   **Priority Control:** Fine-tune the order of injection with priority tweaks.
*   **Developer Friendly:** Forged in React for a buttery-smooth UX. Injections live safely as custom post types, so they're editable, duplicable, and nuke-proof against plugin conflicts.
*   **Clean Output:** Generates clean, reversible PHP that echoes your blocks at runtime—no bloat, no breakage.

## Usage

1.  Navigate to **Hook Injector > Add New** in the WordPress admin menu.
2.  Add your desired content using the Gutenberg block editor.
3.  In the editor sidebar, locate the **Hook Settings** panel.
4.  Enter the **Hook Name** (e.g., `wp_head`, `wp_footer`, `the_content`) where you want the content to appear.
5.  (Optional) Adjust the **Priority** to control the order of injection (default is 10).
6.  (Optional) Set **Conditions** if you want to restrict where the injection appears (e.g., specific post types or pages - *coming soon*).
7.  Click **Publish** to save your injection.

## Frequently Asked Questions

**Which hooks can I use?**
You can use any valid WordPress action hook provided by Core, your theme, or other plugins. Common examples include `wp_head`, `wp_footer`, `the_content`, `loop_start`, etc.

**Does this work with block themes?**
Yes, as long as the theme uses standard WordPress hooks or you know the specific hooks exposed by the block theme templates.

## License

This plugin is licensed under the GPLv2 or later.
