=== Incoming Hook Logger ===
Contributors: stasionok
Tags: webhook, logger, debug, api, logging
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 1.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Log incoming webhooks (URL, headers, body, IP). View, filter, and search in the WordPress admin without blocking other plugins.

== Description ==

Incoming Hook Logger is designed for developers who need to debug or monitor incoming webhook requests sent to their WordPress site. It captures all request data without interrupting the original request flow, allowing other plugins to process the webhooks as usual.

### Key Features:
* **Multiple URLs:** Specify one or more URLs (or partial URLs) to monitor.
* **Full Data Capture:** Logs request method, full URL, headers, raw body, and sender's IP.
* **Admin Interface:** View logs directly in the WordPress dashboard with two tabs (Settings and Logs).
* **Filtering & Search:** Easily find specific entries by filtering by URL or searching through body and headers.
* **Secure Storage:** Logs are stored in a dedicated database table (`wp_webhook_logs`) and accessible only to administrators.

== Installation ==

1. Upload the `incoming-hook-logger` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Incoming Hook Logger** menu in the sidebar.
4. In the **Settings** tab, add the URLs you want to monitor (one per line).
5. View captured requests in the **Logs** tab.

== Frequently Asked Questions ==

= How do I monitor specific endpoints? =

In the **Settings** tab, you can enter partial paths or full URLs.
* For example, entering `/wc-api/` will log all WooCommerce API callbacks.
* Entering `my-custom-endpoint` will log any request that contains this string in its URL.

= Where are the logs stored? =

Logs are stored in a custom database table named `wp_webhook_logs` (the prefix may vary depending on your WordPress configuration). This ensures that logs are not publicly accessible via the filesystem.

== Screenshots ==

1. Admin interface with Settings and Logs tabs.

== Changelog ==

= 1.0.1 =
* Unique option/action prefixes (`inholog_`) for WordPress.org guidelines; migration from legacy `wl_` option key.

= 1.0.0 =
* Initial release.
