=== Smart Meta Desc ===
Contributors: jorgeseo, jorgegl
Tags: SEO, Metadescription, AI, Groq, Llama
Requires at least: 4.7
Tested up to: 6.9
Stable tag: 2.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show a list of posts without a meta description and allow writing or generating them based on their content using AI.

== Description ==

Smart Meta Desc helps you improve your site's SEO by identifying posts that are missing a meta description. Using the power of AI through Groq, you can generate high-quality, relevant meta descriptions in seconds.

The plugin is now 100% free and open-source, with no "Premium" versions or license management.

== Features ==
* **Identify Gaps:** Quickly see which published posts lack a meta description directly in your posts list.
* **AI-Powered Generation:** Use Groq API to generate professional meta descriptions based on your post content.
* **Bulk Edit Ready:** Save time by editing and saving descriptions without leaving the posts list.
* **Yoast SEO Compatible:** Automatically detects if Yoast SEO is active and saves the metadata in the correct fields.
* **Lightweight:** Completely refactored, no external bloat or license management required.
* **Frontend Display:** Automatically outputs the meta description in your site's header if no other SEO plugin is active.

== Installation ==

1. Upload the `smartmetadesc` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to **Settings > Smart Meta Desc** to enter your Groq API Key.

== Configuration ==

1. **API Key:** Obtain a free API Key from [Groq Console](https://console.groq.com/keys).
2. **AI Model:** Select your preferred model (e.g., Llama 3) from the settings page.

== External services ==

=== Groq API ===
This plugin connects to the **Groq API** ([groq.com](https://groq.com)) to provide AI-generated meta descriptions. 

- **Data sent:** The plugin sends the text content of your posts to Groq's servers only when you click the "Generate" button.
- **Endpoints:** `https://api.groq.com/openai/v1/chat/completions` and `https://api.groq.com/openai/v1/models`.
- **Privacy:** Please review [Groq's Privacy Policy](https://groq.com/privacy-policy/) for more information.

== Screenshots ==

1. Meta description generation in the posts list.
2. Plugin settings page with API configuration.

== Changelog ==

= 2.0.1 =
* Fixed sanitization and escaping issues (Security hardening).
* Removed discouraged load_plugin_textdomain() call.
* Improved REST API and AJAX nonce verification.

= 2.0.0 =
* Major Release: Complete code refactor.
* Removed Freemius SDK and all license-related code.
* The plugin is now 100% free and open source.
* Improved security (sanitization and escaping).
* Verified compatibility with WordPress 6.9.
* Added automatic frontend meta output.

= 1.8.2 =
* Adding Smart Meta Desc form to posts list.
* Removed "Tools" submenu and tools page.