===  Featured Image from Content ===
Contributors: snehalpancholi
Tags: featured image, thumbnail, auto, images, media
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Auto-sets the featured image to the first image found in post content when none is set.

== Description ==

Featured Image from Content scans your post's body HTML on save and sets the first `<img>` it finds as the featured image — but only when no featured image has already been chosen. Works with all public post types and optionally downloads external images into your media library.

**Features**

* Triggers automatically on post save — nothing to remember.
* Skips posts that already have a featured image (non-destructive).
* Configurable per post type via a simple settings page.
* Optional sideloading of images hosted on external domains.
* Bulk-scan tool to backfill existing published posts with missing thumbnails.
* Zero front-end scripts — admin-only logic.

== Installation ==

1. Upload the `featured-image-from-content` folder to `/wp-content/plugins/`.
2. Activate the plugin via **Plugins > Installed Plugins**.
3. Visit **Settings > Featured Image from Content** to choose post types and options.

== Frequently Asked Questions ==

= Will it overwrite an existing featured image? =
No. The plugin only runs when a post has no featured image set.

= What happens with external images if sideload is off? =
They are skipped. Only images already in your media library are used.

= Does it run for draft posts? =
It triggers on any `save_post` action for the selected post types, including drafts.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First release.
