=== Easy GPT for WP | AI Content Generator===
Contributors: Ignacio Gil Alvarez
Tags: ai content generator, Ai content writer, ai translation, AI Writer, article refresher
Requires at least: 5.3
Tested up to: 6.9
Requires PHP: 7.3
Stable tag: 1.38
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate SEO content for WordPress with GPT models from OpenAI, DeepSeek and Gemini. Includes auto updates, translations, moderation, Yoast & WooCommerce.

== Description ==
Easy GPT for WP - AI Content Generator is a cutting-edge WordPress plugin that leverages OpenAI's GPT technology to automate the creation of engaging and original content. It allows you to generate AI-powered posts, pages, and WooCommerce products, with seamless integration into your WordPress workflow.

🎯 **Don’t have an API key or don’t want to pay?**  
Try [No Cost AI Writer](https://nocostaiwriter.com) – our 100% free web-based article generator.  
You can create articles in batches, export them to your WordPress site, schedule them for later, and even translate your generated content — all without registering or paying anything.

From intelligent SEO optimization and automatic image generation to YouTube video embedding, every element is designed to boost your site's digital presence and user engagement.

In addition to generating new content, the plugin can automatically refresh existing articles, translate them into other languages using AI (Polylang required), and even moderate and reply to comments automatically to maintain an active and clean community space. It’s a powerful all-in-one content automation toolkit for WordPress.

Now with support for GPT-5.4, GPT-5.2, GPT-5.1, DeepSeek V4, and the latest Gemini 3.1, Gemini 3, and Gemini 2.5 models, you can choose from a wider range of AI providers and generation styles. This gives you greater flexibility, cost control, and access to alternative large language models beyond OpenAI, tailored to your specific needs.

New in version 1.34, Easy GPT for WP - AI Content Generator adds support for OpenAI's latest GPT-5.1 model and new Gemini models such as Gemini 3 Pro Preview and Gemini 2.5 (Pro, Flash, and Flash Lite). This gives you access to the newest generation of multimodal and high-performance AI models directly from your WordPress dashboard.

New in version 1.19, the plugin introduces AI-powered automatic article translation, enabling seamless multilingual content generation. Fully compatible with the Polylang plugin, this feature allows you to automatically translate existing posts into selected target languages.

You can control how often translations occur, which languages to target, and how images and media are handled—preserve originals, update metadata, or generate new assets. It also supports translating SEO fields, tags, featured images, and embedded YouTube videos.

For categories, the plugin intelligently assigns the corresponding translated versions based on existing Polylang mappings. Categories themselves are not translated automatically, so make sure translated versions already exist for each language.

New in version 1.30, Easy GPT for WP - AI content generator now supports OpenAI's latest GPT-5 models (gpt-5, gpt-5-mini, gpt-5-nano), giving you access to the newest generation of AI with improved performance, flexibility, and cost-efficient options.

New in version 1.18, Easy GPT for WP - AI content generator now supports OpenAI's latest models: GPT-4.1, GPT-4.1-mini, and o4-mini, offering more flexibility and cost-efficient generation options tailored to your needs.

New in version 1.14, the Article Refresher feature automatically updates your older posts with improved content, refreshed SEO metadata, regenerated images, and optionally new YouTube videos. You can configure how many articles to refresh per day and set the minimum age. The plugin takes care of the rest, keeping your site fresh and optimized with zero manual effort.

In version 1.12, we’ve further enhanced user engagement by introducing AI-powered comment moderation and automatic comment replies, ensuring your site's community remains active, well-managed, and free from spam.

Please note:
     - **OpenAI** supports both text and image generation.
     - **DeepSeek** can only be used for text generation. Image generation are not supported.
     - **Gemini** supports both text and image generation.

== Key Features ==

- Automate Content Creation: Generate thousands of articles per month effortlessly. Keep your website dynamic and continuously updated without manual effort.
- Intelligent Image Generation: Enhance the visual appeal of your posts with visually appealing images generated by DALL-E.
- Efficient Bulk Operations: Manage content at scale with bulk post creation, allowing for scheduled and consistent updates that maintain your site's freshness and relevance.
- WooCommerce Product Generation: Automatically create WooCommerce product listings, including titles, descriptions, short descriptions, tags, images, and, in batch mode, prices.
- Automatic Article Refreshing: Keep your existing content relevant and up to date with the automatic article refresher. Define how old articles must be to qualify, how many to refresh per day, and let the plugin handle the updates—content, images, SEO, and YouTube videos included.
- AI-Powered Article Translation: Automatically translate existing posts into selected languages using AI, including SEO fields, tags, images, and embedded videos. Requires the Polylang plugin.
- YouTube Video Integration: Automatically embed relevant YouTube videos in generated articles for enhanced engagement (requires a Google API key).
- SEO & Copywriting: Automatically optimize your content for search engines with integrated support for Yoast SEO, boosting your site's visibility and organic search rankings.
- Advanced Customization: Adjust the AI’s output by customizing settings like writing style, tone, and content structure to match your specific audience and content goals.
- Automated Text Formatting: Improve readability with automatic text enhancements such as bolds and italics.
- Automatic Category and Tag Assignment: Automatically assign categories and tags from those available on your site to enhance the organization and searchability of your content.
- Automatic Link and Bibliography Insertion: Include hyperlinks and a bibliography section to add credibility and detailed references to your posts.
- AI-Powered Comment Moderation and Automatic Replies: Enhance your site's interaction by automatically moderating comments and responding to user feedback with AI, ensuring a high-quality discussion environment.

== Screenshots ==
1. Interface to generate an individual article. (`screenshot-1.png`)
2. Article settings for bulk generation. (`screenshot-2.png`)
3. Images settings in bulk generation. (`screenshot-3.png`)
4. Plugin settings menu. (`screenshot-4.png`)
5. Language options available in the plugin. (`screenshot-5.png`)
6. Bulk generation interface. (`screenshot-6.png`)
7. Example of a post generated by AI. (`screenshot-7.png`)
8. Example of a WooCommerce product page generated by AI. (`screenshot-8.png`)
9. Statistics overview of AI-moderated and AI-replied comments. (`screenshot-9.png`)
10. Settings for comment moderation and automatic replies. (`screenshot-10.png`)
11. Configuration options for automatic article refreshing. (`screenshot-11.png`)
12. Article refresher dashboard showing the list of updated articles. (`screenshot-12.png`)
13. Translation dashboard with statistics of translated articles. (`screenshot-13.png`)

== Installation ==

1. Upload the `easy-gpt-for-wp` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. **License Activation**: To use Easy GPT for WP - AI Content Generator, you need to activate a license. If it's your first time using the plugin, you can obtain a free 5-day license without any usage limits. For ongoing use, purchase a license from [this link](https://easygptforwp.com/pricing-plans/).
    - Navigate to the `Easy GPT > License` section in your WordPress dashboard.
    - Enter your license key into the 'License Key' field and click 'Validate'.
4. **API Key Configuration**: After activating your license, you'll need to add one or more API keys depending on the provider you want to use.  
    - **OpenAI**: If you do not have an API key, you can generate it on the [OpenAI platform](https://platform.openai.com/api-keys). OpenAI charges based on usage, so ensure you have funds in your account.  
    - **Gemini (Google AI)**: You can create an API key on [Google AI Studio](https://aistudio.google.com/app/apikey). Requires a Google account.  
    - **DeepSeek**: Create an account and generate your API key at [DeepSeek](https://platform.deepseek.com/). Usage may require approval.  
    - Navigate to `Easy GPT > Settings > API Settings` and enter the API key(s) in the corresponding fields, then save the changes.
5. **YouTube API Configuration (Optional)**: If you want Easy GPT to automatically include YouTube videos in generated content, you'll need to configure the YouTube API.
    - Go to the [Google Cloud Console](https://console.cloud.google.com/).
    - Create a new project and enable the **YouTube Data API v3**.
    - Generate an API key from **APIs & Services > Credentials**.
    - Restrict the API key to your website for security.
    - Copy the API key and enter it in **Easy GPT > Settings > YouTube Settings tab > YouTube API Key**.
6. **SEO Compatibility**: Easy GPT for WP is compatible with Yoast SEO. Make sure you have Yoast SEO installed and activated to utilize SEO features seamlessly.
7. **Comment Moderation & Automatic Replies Configuration**: To enable the new AI-powered comment moderation and auto-reply features:
    - Navigate to `Easy GPT > Settings`, go to the **Comment Moderation & Replies Settings** tab, and enable both the **Enable Moderation** and **Enable Auto Replies** options.
    - Then, go to `Easy GPT > Cron Job Status` to ensure that the respective Cron Jobs for comment moderation and auto replies are running. Each feature requires its own scheduled Cron Job for proper operation.
8. **Automatic Article Refreshing**: To enable automatic article updating:
    - Go to `Easy GPT > Settings`, and in the **Article Refresher Settings** tab, enable the **Auto Refresh** option.
    - Set the number of articles to refresh per interval, how old an article must be to be considered, and other preferences like image or SEO updates.
    - Then, go to `Easy GPT > Cron Job Status` and verify that the **Article Refresher Cron** job is active and running properly.
9. **Automatic Article Translation**: To enable automatic translation of articles (requires the Polylang plugin):
    - Go to `Easy GPT > Settings`, and in the **Translation Settings** tab, enable the **Automatic Translation** option.
    - Choose the target languages from the list (languages must already be created in Polylang).
    - Select how often translations should run (daily, weekly, or monthly) and how many articles to translate per interval.
    - You can also choose how to handle images and YouTube videos in translated content: keep existing assets, update their metadata, or generate new ones.
    - Then, go to `Easy GPT > Cron Job Status` and confirm that the **Article Translation Cron** job is active and scheduled.

For more information and additional resources, visit the official website: [Easy GPT for WP](https://easygptforwp.com/).

== Frequently Asked Questions ==

= What is Easy GPT for WP - AI Content Generator? =
Easy GPT for WP is an innovative WordPress plugin that leverages OpenAI's capabilities to simplify the process of creating and managing content within WordPress. It offers automated features for automate the creation of posts and pages, SEO optimization, dynamic image generation, and content structuring.

= How do I install and activate Easy GPT for WP? =
Begin by downloading the plugin from our official site, upload it to the 'Plugins' section in your WordPress dashboard, and activate it. Post-activation, register your license in the 'Easy GPT > License' menu and enter your OpenAI API Key in the 'Settings' to activate the AI functionalities.

= How do I set up Easy GPT for individual posts or pages? =
To create a new post or page, go to 'Add New' under either 'Posts' or 'Pages' in your dashboard. Enter the necessary details like prompts and keywords, then use the 'Generate Full Content' button to create your content. Review the generated content and if satisfactory, press 'Accept and Insert Article' to publish.

= What customizations can I make with Easy GPT? =
Easy GPT allows you to fine-tune your content with options like selecting the AI model, setting the creativity level, choosing the article's language, specifying the word count, and deciding on the number of subheadings. You can also set formatting preferences for text and decide whether to include links and bibliographies.

= Does Easy GPT for WP generate images for posts? =
Yes, Easy GPT for WP incorporates DALL-E technology to produce relevant images that enhance the appeal and engagement of your posts.

= What should I do if I encounter issues with Easy GPT for WP? =
If you face any problems, our dedicated support team is ready to assist you. Reach out via our support channels for help.

= In which languages can Easy GPT for WP generate articles? =
Our plugin supports multiple languages, allowing you to create content that caters to a global audience. Available languages include English, Spanish, French, among others. Check the plugin's settings to see all available options.

= How does Easy GPT for WP handle SEO? =
Easy GPT for WP integrates smoothly with Yoast SEO, automatically managing SEO titles and meta descriptions to ensure your content ranks well on search engines.

= Is Easy GPT for WP compatible with WooCommerce? =
Yes, Easy GPT for WP now supports WooCommerce. You can generate product titles, descriptions, short descriptions, tags, and images. Additionally, batch product generation allows you to create multiple products at once, including optional price generation.

= What is the Article Refresher feature and how does it work? =
The Article Refresher is a powerful feature that automatically updates older articles on your site. You can define how old an article must be to qualify (e.g., at least 90 days old), how many articles should be refreshed per day, and whether to update images, SEO, or embedded YouTube videos. The plugin will then automatically regenerate and improve the content based on your settings.

= Can I control what gets updated when an article is refreshed? =
Yes. You can choose whether to update just the content or also regenerate images, replace the featured image, add a YouTube video, and update the SEO title and description. All of these options are configurable under the Article Refresher Settings tab in the plugin settings.

= Does the Article Refresher generate articles in advance or just-in-time? =
The Article Refresher updates a specific number of old articles per day, week, or month based on your settings. The plugin calculates the appropriate interval between refreshes (e.g., one article every 8 hours if you choose 3 per day) and updates each article automatically as the cron job runs—so refreshes happen progressively, not all at once.

= How does the AI-powered comment moderation work? =
The new feature automatically scans and moderates incoming comments using AI, filtering out spam and ensuring that discussions remain relevant and constructive. Additionally, the AI generates automatic replies to engage users and keep the conversation flowing. 

To use these functionalities, make sure that in Easy GPT >> Settings you activate both the "Enable Moderation" and "Enable Auto Replies" options. Also, verify in Easy GPT >> Cron Job Status that both cron jobs are running—one dedicated to comment moderation and the other for automatic replies—as each function requires its own scheduled job for proper operation.

= How does the automatic article translation work? =
The plugin uses AI to translate existing articles into other languages configured in Polylang. You can enable automatic translation, define the frequency and number of articles to translate per interval, and customize how images and YouTube videos are handled. Translated articles are published as drafts or published directly, depending on your settings, and linked to the original post using Polylang’s language associations.

= Can I define the number of headings in my articles? =
Yes, within the plugin's settings, you can specify how many H2, H3, and H4 headings your articles should have, helping you align with your content's structure requirements.

= How does the bibliography feature work in Easy GPT for WP? =
The plugin can automatically create a bibliography section when it references credible sources, ensuring that your content maintains integrity and relevance.

= Why are there sometimes no links in the articles generated by Easy GPT for WP? =
If no suitable references are found during the generation process, the plugin may omit links to maintain content quality. Make sure the link inclusion setting is enabled and check that it's configured to look for authoritative sources.

= Is there a subscription fee for Easy GPT for WP? =
Yes, Easy GPT for WP operates on a subscription basis. We offer a free trial that lets you explore the plugin's features before committing to a paid plan. For detailed subscription information, please visit our pricing page [here](https://easygptforwp.com/pricing-plans/).

== Support and Updates ==

Our dedicated support team is ready to assist you with any issues or queries. Regular updates ensure compatibility with the latest WordPress releases and OpenAI enhancements, providing you with a reliable and efficient content generation tool.

== External Services ==

This plugin uses the following external services:

= **OpenAI API**: To generate content, this plugin connects to the OpenAI API. An OpenAI API key is required for its operation.

  - [OpenAI Website](https://openai.com)
  - [OpenAI Privacy Policy](https://openai.com/policies/privacy-policy)
  - [OpenAI Terms of Service](https://openai.com/policies/terms-of-use)

= **Gemini API (Google AI)**: To generate content or images using Google's Gemini models, the plugin connects to the Google AI API. A Google API key is required, and image generation requires billing to be enabled on your account.

  - [Google AI Studio](https://aistudio.google.com/app/apikey)
  - [Google Privacy Policy](https://policies.google.com/privacy)
  - [Google Terms of Service](https://policies.google.com/terms)

= **DeepSeek API**: For text generation, this plugin connects to the DeepSeek API. A DeepSeek API key is required.

  - [DeepSeek Platform](https://platform.deepseek.com/)
  - [DeepSeek Privacy Policy](https://platform.deepseek.com/privacy)
  - [DeepSeek Terms of Service](https://platform.deepseek.com/terms)

= **License Verification**: The plugin connects to https://easygptforwp.com to verify the validity of the license.

  - [Easy GPT for WP Website](https://easygptforwp.com)
  - [Privacy Policy](https://easygptforwp.com/privacy-policy)
  - [Terms of Service](https://easygptforwp.com/terms-and-conditions/)

== Changelog ==
= 1.38 =
* Added support for OpenAI GPT-5.4 models: gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, and gpt-5.4-pro.
* Added support for DeepSeek V4 models: deepseek-v4-flash and deepseek-v4-pro.
* Added support for new Gemini models, including Gemini 3.1 Pro Preview, Gemini 3.1 Flash-Lite Preview, Gemini 3.1 Flash Image Preview, Gemini 3 Pro Image Preview, and Gemini 2.5 Flash Image.
* Added optional auto-restart settings for cron jobs, allowing selected cron tasks to be restored automatically if they stop unexpectedly.

= 1.37 =
* Allow changing bulk generation publishing mode (draft, publish, schedule) after creation.
* Added ability to edit individual pending tasks (prompt, keywords and publishing plan).
* Minor fixes and improvements.

= 1.36 =
* Added support for OpenAI GPT-5.2

= 1.35 =
* Tested and confirmed compatibility with WordPress 6.9.
* Minor internal improvements and general stability fixes.

= 1.34 =
* Added support for OpenAI GPT-5.1 and GPT Image 1 models.
* Added support for new Gemini models, including Gemini 3 Pro Preview and Gemini 2.5 (Pro, Flash, and Flash Lite).
* Updated internal model cost table and model selector to include the latest OpenAI, Gemini, and DeepSeek options.

= 1.33 =
* Improvements in article refresher stability and image handling.

= 1.32 =
* Fix minor errors.

= 1.31 =
* Fixed issue where backslashes "\" were being removed during article translation.

= 1.30 =
* Fixed issue with YouTube API Key being marked invalid when updating other settings.
* Added support for new GPT-5 models (gpt-5, gpt-5-mini, gpt-5-nano).

= 1.29 =
* Minor internal tweaks and developer improvements.

= 1.28 =
* Fixed missing author assignment when generating batch articles.
* Added support for the gpt-4.1-nano model.
* Fixed Cloudflare error 524 when generating articles.
* Minor corrections and interface adjustments.

= 1.27 =
* Minor corrections and interface adjustments

= 1.26 =
* Timestamps in the Cron Job Status page are now shown in the local timezone configured in WordPress, instead of UTC.

= 1.25 =
* Added welcome wizard to guide new users through license activation and basic setup.
* Enhanced the "How to use" tutorial with clearer steps and updated screenshots.

= 1.24 =
* Fixed a bug that caused "keywords" field to exceed the maximum allowed length.

= 1.23 =
* Added support for updating Pages in the Article Refresher.
* Added user-friendly error messages when saving bulk article generations.

= 1.22 =
* Added support for DeepSeek and Gemini APIs.
* Minor fix in AI comment system.

= 1.21 =
* Replaced "match" expressions to improve compatibility with older PHP versions.

= 1.20 =
* Added status tracking for translations (processing, success, error) in the database log.

= 1.19 =
* Added AI-powered automatic article translation (requires the Polylang plugin).

= 1.18 =
* Added support for new models: GPT-4.1, GPT-4.1-mini, and o4-mini.

= 1.17 =
* Tested up to WordPress 6.8.

= 1.16 =
* Fixed comment approval logic.

= 1.15 =
* Fix minor errors.

= 1.14 =
* Introduced "just-in-time" generation mode: articles are now generated close to their scheduled publish time, based on the WordPress cron schedule.
* Added option to define a time interval between articles published on the same day, allowing more natural content pacing.
* Added retry option for failed article generations, both individually and in bulk.
* Implemented new "Article Refresher" system that automatically updates old posts with improved content, images, YouTube videos, and SEO metadata.

= 1.13 =
* Improved the quality of generated articles.
* Added support for automatic citation inclusion within articles.
* Introduced an optional final review step before publishing generated content.
* Enhanced batch generation with control over the time interval between same-day articles.
* Improved YouTube video selection for better content relevance.

= 1.12 =
* Added AI-powered comment moderation.
* Added AI-powered automatic comment replies.

= 1.11 =
* Added support for Traditional Chinese language.

= 1.10 =
* Added the ability to pause and resume bulk generation tasks.
* Improved bulk generation cancellation functionality. Bulk generation jobs can now be cancelled even after initiation, though tasks marked as 'processing' or 'completed' remain unaffected.
* Added error information displayed directly in the tasks table for batch generation tasks, clearly indicating the reason for failures, when applicable.

= 1.09 =
* Added AI-powered generation of title and alt attributes for images in both posts and WooCommerce products, including batch generation.
* Fixed minor issue when initializing cron jobs from the "Easy GPT > Cron Job Status" section.

= 1.08 =
* Improved JavaScript validation for required fields, ensuring clearer feedback to users.
* Added asterisks (*) to required fields for better user clarity.

= 1.07 =
* Added support for o3-mini model

= 1.06 =
* Added support for generating WooCommerce products, including title, description, short description, tags, images, and prices.
* Enabled batch product generation for WooCommerce, including optional price generation.
* Fixed minor bugs.
* Adjusted cost calculation for better accuracy.
* Added support for `o1-preview` and `o1-mini` models.
* Users can now pause and resume batch processing jobs.
* Users can adjust the execution interval for batch processing jobs.
* Added an option to automatically include YouTube videos and products in generated articles (requires a Google API key).

= 1.05 =
* Add API Key Validation to handle authentication errors more effectively.

= 1.04 =
* Fixed warnings related to undefined array keys.

= 1.03 =
* Improvement: Fixed minor errors.

= 1.02 =
* Improvement: Fixed issues related to data sanitization and escaping to comply with WordPress coding standards.

= 1.01 =
* Correction: Resolved problems with prepared SQL statements and enhanced their security.
* Update: Replaced deprecated functions with recommended alternatives to improve compatibility and performance.

= 1.0 =
* Initial release of Easy GPT for WP - AI Content Generator.
* Features introduced:
  - AI-powered content generation: Automate the creation of engaging, SEO-optimized articles and pages directly within your WordPress dashboard.
  - Compatibility with Yoast SEO: Ensures all generated content is optimized for search engines, enhancing visibility and traffic.
  - Diverse content capabilities: Capable of generating a wide range of content types, from detailed blog posts to comprehensive web pages.
  - Automated formatting: Automatically categorizes content, assigns tags, and applies text formatting like bold and italics for improved readability and structure.
  - Advanced customization options: Customize the AI output according to preferred writing style, tone, and specific content requirements.
  - Bulk content creation: Facilitates the generation of multiple posts or pages at once, ideal for maintaining a consistent content schedule.
  - Intelligent image generation: Incorporates DALL-E technology to generate relevant and visually appealing images to complement the text.
  - Seamless integration: Designed to integrate smoothly with existing WordPress setups, making it easy to start using without extensive configuration.