=== Aims AI Scheduler – Smart Auto Blogging & Post Publisher === Contributors: aimsinfosoft Tags: openai, ai content, content generator, post plugin, Aims AI Scheduler – Smart Auto Blogging & Post Publisher Requires at least: 5.5 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Generate and manage Wp posts using AI (OpenAI). Automate post creation with custom prompts and schedule via cron. == Description == This plugin uses OpenAI to automatically generate content for posts/pages in Wp. Includes: - Admin UI for prompt input - Content preview and approval - Scheduled content generation via cron jobs - Saved logs and history for generated content == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` 2. Activate the plugin through the "Plugins" menu 3. Configure from "AI Content Generator" in the admin panel == Frequently Asked Questions == = Do I need an OpenAI API key? = Yes, the plugin requires your API key to function. = Does this plugin store my OpenAI data? = Only locally and temporarily in the database and log files. == External Services == This plugin connects to OpenAI and Google Gemini APIs to generate post content using AI. OpenAI API: - URL: https://api.openai.com - Data Sent: User prompt and parameters (no personal data). - Terms: https://openai.com/terms - Privacy: https://openai.com/privacy Google Gemini API: - URL: https://generativelanguage.googleapis.com - Data Sent: User prompt and parameters (no personal data). - Terms: https://policies.google.com/terms - Privacy: https://policies.google.com/privacy == Changelog == = 1.1 = * Fixed a critical bug where scheduled (cron) post generation never ran because of a leftover debug statement that halted execution on every run. * Fixed logging: log writes used an incorrect WP_Filesystem call that silently marked the log file read-only after the first entry, so no further log messages were ever recorded. Logs now append correctly, and existing log files are no longer left write-locked. * Added clear log messages when generation is skipped due to no active prompts or no API key configured for the selected model, instead of failing silently. * Removed a stray `exit;` at the end of the cron handler that could terminate other scheduled WordPress cron tasks running in the same request. * "Select API Model" now always lists both Gemini and GPT so a key can be added and verified for either provider. * Refreshed the Gemini and GPT model discovery filters to match currently available model names; previously a stale filter could leave the AI model dropdown empty after verifying a valid key. * Added automatic IPv4 fallback for Gemini/OpenAI API requests to prevent hangs on networks with broken IPv6/HTTP2 routing. * Confirmed compatibility with WordPress 7.1 and added explicit "Requires at least" / "Requires PHP" headers. = 1.0 = * Initial release == Upgrade Notice == = 1.1 = Fixes scheduled post generation, logging, and AI model selection issues. Recommended update for all users. = 1.0 = First stable version. == License == This plugin is licensed under the GPLv2 or later. == Screenshots == 1. Plugin settings screen with Gemini API model selected. 2. Plugin settings screen with GPT API model selected. 3. Settings saved successfully confirmation screen. 4. Add new prompt screen. 5. Example of content being generated while adding a prompt. 6. Prompt listing screen. 7. Edit prompt screen. 8. Generated post screen after creating a prompt. 9. Created posts list for a selected prompt with status and created date. 10. Final AI-generated post published via the plugin.