=== AI Content Creator - Easy ChatGPT powered article generator ===
Contributors: ABCdatos
Tags: chatgpt, gpt, openai, ia, inteligencia artificial
Requires at least: 4.2
Tested up to: 7.0
Stable tag: 1.3.0
Requires PHP: 5.5
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This plugin easily creates articles for new posts for your site using the same AI that powers ChatGPT.

== Description ==

Are you tired of spending hours creating content for your website? Do you want to take your website's content to the next level? Look no further than the AI Content Creator plugin for WordPress!

Looking for an easy and efficient way to create posts for your website? Look no further than AI Content Creator!

With this powerful WordPress plugin, you can quickly generate high-quality content using an AI text generation provider. On WordPress versions that support it, the plugin can use any text generation provider and model made available through WordPress AI Client by compatible provider plugins, so the plugin is no longer limited to a fixed list of OpenAI models. A legacy OpenAI API key can still be used as a fallback. Simply enter a title for your article, click "Create article" and let the plugin do the rest.

Please note that you'll need access to an AI text generation provider to use the plugin. Where WordPress AI Client is available, install the provider connector you want to use and configure it from Settings > Connectors. For example, Ollama can be used through a connector such as the AI Provider for Ollama plugin. You can also configure the legacy OpenAI API key fallback. If you use OpenAI directly, we provide instructions on how to get a key in the plugin's help section.

If you want AI article generation without API keys or per-request provider costs, you can use a local or remote Ollama server through a compatible connector. This can be especially attractive for users who want to run their own models and keep generation under their own infrastructure.

While AI-generated content is not always perfect, the plugin includes preliminary error checks to help you catch any issues before publishing. Plus, you can preview the content and edit it as needed before creating a post draft and hitting "publish."

After article has been created, you may use the featured image selector included. It offers you a bunch of royalty free suggestions from Pixabay related to the article topic and includes a image search engine to make it as easy as possible.

SEO capabilities include automatic tags for the article, as well as meta keywords and description if the AI creates them and Yoast SEO, All in One SEO or Rank Math SEO are installed and active on your site.

We're constantly working to improve the plugin's capabilities and stay up-to-date with the latest AI technologies. The plugin includes conditional integration with WordPress AI Client and WordPress Abilities when those APIs are available, while preserving the existing legacy generation flow for older installations.

The plugin supports multiple languages. And if there's a language you need that's not yet supported, just let us know; we're always open to feedback and suggestions.

You can configure the plugin to write articles in these languages:
- English (English)
- Spanish (Español)
- Portuguese (Português)
- French (Français)
- German (Deutsch)
- Russian (русский)
- Japanese (日本語)
- Italian (Italiano)
- Chinese (中文)
- Dutch (Nederlands)
- Korean (한국어)
- Arabic (العربية)
- Turkish (Türkçe)
- Polish (Polski)
- Ukrainian (українська)
- Persian (فارسی)
- Swedish (Svenska)
- Czech (čeština)
- Danish (Dansk)
- Finnish (Suomi)
- Hungarian (Magyar)
- Catalan (Català)
- Basque (Euskara)
- Galician (Galego)
- Asturian (Asturianu)

Performance and quality may be affected when writing in languages used by a low population.

To ensure your API key stays safe and secure, we've implemented various measures to protect it from unauthorized access. For example, the plugin erases your key from queries prior to saving, and access to the plugin's settings is restricted to administrators.

Need help getting started? Check out the plugin's help section for detailed instructions on how to use AI Content Creator to its full potential.

== Requirements ==

1. Access to an AI text generation provider, through a compatible WordPress AI provider plugin configured in Settings > Connectors, or the legacy OpenAI API key fallback.
1. To use Ollama without API keys or per-request provider costs, run a local or remote Ollama server and configure it through a compatible connector, such as the AI Provider for Ollama plugin.

== Installation ==

1. Upload files to the /wp-content/plugins/ai-content-creator/ directory or install plugin directlly through the Plugins menu of your WordPress.
1. Activate the plugin through the Plugins menu of your WordPress.
1. Go to AI Content Creator settings from the WordPress admin menu to configure the plugin.
1. Adjust settings to fit your needs and press at Save changes.

== Frequently Asked Questions ==

= Is an OpenAI or ChatGPT account required? =

No. When WordPress AI Client is available, AI Content Creator can use any provider exposed by a compatible WordPress AI provider connector. OpenAI or ChatGPT is only required if you choose the legacy OpenAI API key fallback or a connector that specifically requires OpenAI credentials.

= How can I sign for the OpenAI account? =

Follow the plugin Help section for instructions if you want to use the legacy OpenAI API key fallback. This is optional when you use a WordPress AI Client provider connector instead.

= How do I install and configure AI provider connectors? =

Install a compatible WordPress AI provider plugin from the Plugins screen. That connector adds providers and models to WordPress AI Client. Then go to Settings > Connectors to configure the provider credentials, endpoint, and available models. After the connector is configured, AI Content Creator can use it through WordPress AI Client where available.

= How can I use Ollama? =

Ollama is used through the same WordPress AI Client connector system as other providers. Install and run Ollama on a local machine or remote server, then install a compatible WordPress connector such as the AI Provider for Ollama plugin. Configure the Ollama connector from Settings > Connectors with the Ollama server URL and the models you want to use. Once the connector is ready, select or prioritize that provider in AI Content Creator settings. This lets you generate articles without third-party API keys or per-request provider costs, while your Ollama server and computing resources remain under your responsibility.

= The result is not HTML =

As humans, AI are not exact nor predictable, is a typical fail, try it again. Also keep in mind that too much instructions may cause to forget to follow some others. Think as you are explaining Homer Simpson what to do. Try to be concise and don't bother it with an exccess of instructions.

== Screenshots ==

1. Article creation order page.
2. Created articles list.
3. Settings page.
4. Correct article creation result page.
5. Article creation failed result page.

== Changelog ==

= 1.3.0 =
May 13 2026.
* Added conditional WordPress AI Client support before the legacy OpenAI fallback.
* Added configurable WordPress AI Client provider and model priorities.
* Added conditional WordPress Abilities API integration for generating articles and creating drafts from stored generations.
* Added a conditional WordPress Abilities API action for reprocessing stored generations.
* Added nonces to article admin actions that modify stored generations or selected images.
* WordPress 7.0 compatibility checked.

= 1.2.6 =
Mar 22 2025.
* New models support: GPT-4o mini, GPT-4.5, o1, o1 pro, o1 mini, and o3 mini.
* Support for the text-davinci-003 model has been removed.
* Default model on instal gpt-4o-mini.
* Updated usage model pricing, non-binding.
* Added Slovak language support, per ady66's request.
* CSRF protection in create draft function. Thanks to Nguyen Xuan Chien at Patchstack.
* Minor code improvements.

= 1.2.5 =
Nov 08 2024.
* Improved API longer key formats with support for new characters, including additional dashes and underscores.
* Context and additional guidelines are not longer mandatory.
* WordPress 6.7 basic compatibility checked.

= 1.2.4 =
Sep 15 2024.
* Longer API keys format supported.

= 1.2.3 =
May 24 2024.
* Solved bug on uninstall.
* WordPress 6.6 basic compatibility checked.

= 1.2.2 =
May 22 2024.
* New sk-proj-... API keys format supported.

= 1.2.1 =
May 21 2024.
* New sk-project-... API keys format supported.
* Solved minor bug in help page code.

= 1.2.0 =
*May 14 2024*
* GPT-4 Turbo and Omni supported.
* Solved bug in article deletion.
* API error management changes.
* Removed the uncompleted code for AI21 support.
* Code documentation improved.
* Minor code improvements.

= 1.1.4 =
*May 03 2024*
* Corrected fatal error.

= 1.1.3 =
*May 03 2024*
* Small performance improvements.

= 1.1.2 =
*May 03 2024*
* Added calculation of the created article cost based on input and output tokens used.
* Source code improvements.
* WordPress 6.5 basic compatibility checked.

= 1.1.1 =
*Jun 09 2023*
* Minor text fixes.
* Added guidance to assist plugin translators.
* More source code styling improvements.

= 1.1.0 =
*May 01 2023*
* Featured image selector included.
* Creates a SEO slug from title.
* Apply post tags if obtained from AI.
* Apply post excerpt if obtained from AI.
* If Yoast SEO, All in One SEO or Rank Math SEO actives, apply meta description and keywords if provided from AI.
* Improved internal postproduction process.
* Improved some notifications.
* Improved displaying of admin menu icon.
* Replaced some code requiring PHP version 8.0 to ensure to lower this requisite to PHP version 5.4.
* Source code styling improved.

= 1.0.4 =
*Apr 05 2023*
* Removed Spanish language translation file from the plugin package as it is now available for translation at https://translate.wordpress.org.
* Added catalan translation file.
* Lowered required PHP version to 5.4.

= 1.0.3 =
*Mar 23 2023*
* Enable translation capability from translate.wordpress.org.

= 1.0.2 =
*Mar 23 2023*
* Solved failed HTML creations detection.

= 1.0.1 =
*Mar 22 2023*
* Improved draft code filtering.
* Improved the create form security. HTML tags are rejected.
* Solved some translation bugs.
* Solved animation process bug.

= 1.0.0 =
*Mar 20 2023*
* First public version.

== Upgrade Notice ==

= 1.3.0 =
Adds WordPress AI Client provider support, WordPress Abilities integration, and improved admin action protection.

= 1.2.6 =
* Implemented CSRF vulnerability protection for the article draft creation process.

= 1.2.1 =
* New API key format supported.

= 1.2.0 =
* GPT-4 Turbo and Onmi supported, cheaper than original GPT-4 and with updated databases.

= 1.1.0 =
* Includes an easy featured image selection for each article from Pixabay.
* New SEO capabilities.

= 1.0.0 =
* First public version.
