AI-Powered SEO Content Regenerator

**Version:** 2.0.0

**Author:** M Numan Latif

**License:** GPL-2.0-or-later **Requires WordPress Version:** 5.5 or higher **Requires PHP Version:** 7.4 or higher 

A modern toolkit to create new SEO posts from a keyword and regenerate existing content using the power of AI, all from within your WordPress dashboard.

## Description

The **AI-Powered SEO Content Regenerator** is a streamlined, powerful tool designed for content creators who want to leverage AI for efficiency and quality. It seamlessly integrates into your
 
WordPress workflow with two primary functions:
 
  1. **AI Post Creation:** Generate a complete, SEO-optimized draft post from a single focus keyword. The AI creates a title, introduction, structured body with headings, and a conclusion, all while maintaining a natural keyword density.
  2. **Content Regeneration:** Breathe new life into existing posts. Select any post and choose to rewrite its introduction, conclusion, or the entire article. For full post rewrites, the plugin now intelligently formats the output into sections based on `<h1>` headings, each with its own copy button.
With a modern, animated, and intuitive interface, this plugin turns complex content tasks into a simple, two-click process.

## Features

  1. * **One-Click Post Creation:** Enter a keyword, and a new draft post is created for you in seconds.
  2. * **Targeted Regeneration:** Pinpoint exactly what needs improvement—rewrite intros, conclusions, or entire posts.
  3. * **Intelligent Section-Based Copying:** When rewriting a full post, the AI output is automatically divided into sections by `<h1>` tags, each with a dedicated button to copy only that section's content.
  4. * **Focus Keyword Guidance:** Provide a focus keyword to ensure your regenerated content stays SEO-focused.
  5. * **Seamless Integration:** All tools are available directly on the "All Posts" screen.
  6. * **Modern, Animated UI:** A beautiful, responsive, and intuitive design.
  7. * **Secure API Handling:** Your OpenRouter API key is stored securely in the database and never exposed to the browser.

## Installation

  1. From your WordPress Dashboard, navigate to **Plugins > Add New**
  2. Click the **Upload Plugin** button
  3. Select the `ai-seo-regenerator.zip` file from your computer and click **Install Now**
  4. After installation, click **Activate Plugin**

## Configuration

Before using the plugin, you must add your OpenRouter API key.

    1. **Get Your API Key:**
      1. * Sign up for a free account at OpenRouter.ai.
      2. * Navigate to your **Keys** page in your account dashboard.
      3. * Create and copy a new API key.
      4. **Add Key to WordPress:*
      5. * In your WordPress Dashboard, navigate to **Settings > AI Regenerator**.
      6. * Paste your API key into the **OpenRouter API Key** field.
      7. * Click **Save Changes**.
Your plugin is now configured and ready to use!

## How to Use the Plugin

### Creating a New Post with AI

  1. Navigate to **Posts > All Posts**
  2. Click the new **Add New with AI ✨** button
  3. In the dialog box, enter your primary **focus keyword**
  4. Click **Generate Post**
  5. Once complete, a success message will appear with a link to **Edit New Draft**

### Regenerating Content in Existing Posts

 

  1. Navigate to **Posts > All Posts**
  2. In the **AI Toolkit** column, find the post you wish to edit
  3. Use the dropdown menu to select the action: **Rewrite Intro**, **Rewrite Conclusion**, or **Rewrite Post**
  4. Optionally, enter a **Focus Keyword** in the text field below.
  5. Click the **Regenerate** button.
  6. A modal will appear with the results: * For `Rewrite Intro` or `Conclusion`, you'll see a simple side-by-side comparison * For `Rewrite Post`, if the AI has used multiple `<h1>` headings, the modal will display each `<h1>` and its content as a separate, copyable section
  7. Click the **Copy Section** or **Copy All** button for the content you want, then close the modal and paste it into your post editor