=== Extension Access Manager ===
Contributors: haidermirza1
Tags: api, image upload, chrome extension, rest api, wordpress integration
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Securely connect your Chrome extension to WordPress for uploading images and posting content via custom REST API.

== Description ==

**Extension Access Manager** enables a secure, custom REST API endpoint for uploading images and submitting posts directly to WordPress. Built for browser extensions and third-party apps, it simplifies content publishing and media handling through a protected access token system.

= Key Features =
* Secure image upload via POST request
* JSON-based post publishing from extensions
* Token-based authentication
* Built for integration with Chrome extensions
* Lightweight and easy to set up

== Installation ==

1. Upload the plugin ZIP via **Plugins > Add New > Upload Plugin** in your WordPress dashboard.
2. Activate the plugin.
3. Use the `/wp-json/custom-api/receive` endpoint for communication.
4. Set your token in the plugin PHP file (`$secretToken = 'your_custom_token';`) for access control.

== Frequently Asked Questions ==

= Q. Can I use this with any Chrome extension? =
Yes. Just make sure your extension makes requests to the correct endpoint and includes the token.

= Q. What data format does it accept? =
The plugin accepts JSON containing `title`, `content`, and `image_url`.

== Screenshots ==

1. Example of a successful JSON post request.
2. Chrome extension integration demo.

== Changelog ==
= 1.1 =
* Added REST route /import-categories to import scraped categories.
* Improved image handling and .webp/base64 upload fallback.
* Fixed minor bugs.

== Upgrade Notice ==

= 1.1 =
First release – stable and secure for basic REST integration.

== License ==

This plugin is licensed under the GPLv2 or later. See the [License URI](https://www.gnu.org/licenses/gpl-2.0.html) for more information.
