=== NeuroContent ===
Plugin Name: NeuroContent
Version: 1.0.9
Author: VerseLabwp
Author URI: https://verselabwp.com/neurocontent/
Contributors: verselabwp
Tags: ai content, ai articles, content automation, seo content, openai
Requires at least: 6.7
Tested up to: 6.9
Stable tag: 1.0.9
Requires PHP: 8.0
License: GPL v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

AI Content Generator for WordPress – create SEO articles, generate AI images, automate publishing workflows, enable web search, approve content by email, and auto-post to Facebook pages.

== Description ==

NeuroContent is a powerful AI content generator for WordPress designed to help you create, schedule, approve, and publish SEO-optimized articles automatically.

Powered by OpenAI, the plugin generates high-quality content and AI images directly inside WordPress — without switching tools or copy/paste workflows.

From idea to publication in minutes.
NeuroContent works as a WordPress content automation plugin that can generate, approve, and publish articles automatically.

### 🚀 What NeuroContent Can Do
✓ **Generate Complete SEO Articles in Seconds**
Create long-form blog posts, affiliate content, product descriptions, news articles, and more using customizable prompts.

✓ **Create AI Images Inside WordPress**
Generate unique featured images, thumbnails, and illustrations automatically from text prompts.

✓ **Automate Publishing with Smart Triggers**
Schedule automatic article generation:
- Hourly
- Daily
- Weekly
- Custom intervals

Perfect for content scaling and niche websites.

### ✓ NEW – Email Article Approval & Control

Review generated articles directly from your email inbox.

You can:
- ✅ Approve article
- ❌ Delete article

No need to log into WordPress.
One click from your email and the action is executed instantly.

Perfect for agencies and editorial workflows.

✓ **NEW – Facebook Auto Posting (Social Share)**

Connect your Facebook account and automatically publish or schedule posts to your Facebook Pages.

Social Share features:
- Publish instantly when article goes live
- Schedule Facebook posts
- Select specific Facebook Pages
- Control posting directly from the Gutenberg / Classic Editor meta box
- Grow traffic automatically while publishing content.

✓ **NEW – Web Search for AI Articles**

NeuroContent can search the internet for factual information before generating an article.

When **Web Search is enabled for a trigger**, the AI can gather real-time context before writing content. This improves accuracy and helps generate articles based on current information.

Search provider:
- OpenAI Web Search

Useful for topics such as:
- economic news
- market trends
- industry developments
- public policy changes
- fast-moving events

Web Search runs automatically during article generation when enabled in trigger settings.

✓ **NEW – AI Content Analytics Dashboard (PRO)**

NeuroContent PRO includes a built-in **Analytics dashboard** that helps you understand how your AI content system performs.

The Analytics tab shows:

- number of generated articles
- token usage
- AI generation costs
- image generation usage
- success and error rates
- performance metrics

This helps you monitor your AI content workflow directly inside WordPress.

The **free version displays a limited analytics overview**, while **NeuroContent PRO unlocks the full analytics dashboard and detailed insights.**

✓ **Native WordPress Integration**

- Works with Gutenberg & Classic Editor
- Works with any theme or page builder
- No coding required
- Built for performance

### 🎯 Built For
- Bloggers
- SEO professionals
- Affiliate marketers
- Agencies
- News publishers
- E-commerce stores
- Automated content websites

If you need scalable content production inside WordPress — NeuroContent PRO is your publishing engine.

---
### AI Content Generator for WordPress

NeuroContent is a WordPress AI plugin that helps generate AI articles, automate content publishing, create AI images, and scale content production using OpenAI.

It can be used for:

- AI article generation
- automated blog content
- SEO article writing
- AI powered publishing workflows
- automated content websites
- WordPress AI content automation

## 🔧 Core Features
### ⭐ AI Article Generator

- Long-form SEO articles
- Custom tone & structure
- Keyword control
- Heading structure (H1–H3 optimized)

### ⭐ AI Image Generator

- Generate featured images from prompts
- Unique visuals per article
- Direct WordPress media integration

### ⭐ Automated Content Scheduling (Triggers)

- Fully automated article creation
- Recurring publishing intervals
- Hands-free content production

### ⭐ Web Search for AI Articles (NEW)

- Enable internet search before article generation
- Gather real-time information for better context
- Improve factual accuracy in AI-generated content
- Works automatically inside triggers
- Powered by OpenAI Web Search

### ⭐ Email-Based Article Approval (NEW)

- Approve or delete generated articles via email
- One-click secure action links
- Ideal for editorial review workflows

### ⭐ Facebook Social Share Automation (NEW)

- Connect Facebook account
- Post automatically to Facebook Pages
- Schedule social posts
- Configure per article inside editor
- Boost organic reach automatically

### ⭐ AI Analytics Dashboard (PRO)

Monitor your AI content system directly inside WordPress.

The Analytics tab provides:

- article generation statistics
- token usage tracking
- estimated AI cost monitoring
- image generation metrics
- trigger success and error tracking
- performance insights for automated content workflows

The **free version shows a simplified overview**, while **PRO unlocks the full analytics dashboard and advanced metrics.**

### ⭐ Editor Meta Box Control

- Generate content with one click
- Control AI settings per post
- Publish or schedule social sharing
- Works inside Gutenberg and Classic Editor

### 🧠 Why Choose NeuroContent PRO?

- All-in-one AI content automation
- SEO-friendly article generation
- Automated publishing workflows
- Social media automation included
- Saves hours of manual work
- Scales content production affordably

NeuroContent PRO is not just an AI writer. It also includes an AI analytics dashboard that helps monitor token usage, article generation, and automation performance.
It’s a complete WordPress automation system.

👉 Upgrade to **NeuroContent PRO** to unlock advanced editorial approval workflows and full automation control.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/`
2. Activate the plugin in **Plugins → Installed Plugins**
3. Open **NeuroContent AI** in your WordPress Dashboard
4. Add your OpenAI API key
5. Start generating articles and images instantly

---

== External Services ==

This plugin connects to the **OpenAI API (api.openai.com)** to generate text and images based on your prompts.

### 🔹 What service is used?
**OpenAI API** – https://api.openai.com  
Used for:
- Text generation (articles, titles, summaries)
- Image generation
- Optional web search used during article generation when enabled

### 🔹 What data is sent and when?
Data is sent **only when you click a "Generate" button** or manually trigger AI creation.  
The plugin sends:

- Your text prompt  
- Optional content you choose to include (titles, descriptions)  
- Selected model and generation options  
- No personal user data is sent automatically  

No background requests are made without user action.

### 🔹 Legal information
OpenAI Terms of Use  
https://openai.com/policies/terms-of-use

OpenAI Privacy Policy  
https://openai.com/policies/privacy-policy

OpenAI may receive standard HTTP metadata (e.g. IP address) according to their policy.

---

No automatic posting without user configuration.

== Frequently Asked Questions ==
=What do I need?=
An OpenAI API key. Optional: Facebook account for Social Share.

=Can I approve articles by email?=
Yes. When enabled, you can approve or delete generated articles directly from your email inbox.

=Does it automatically post to Facebook?=
Yes. After connecting your account, you can publish or schedule posts to your Facebook Pages.

=Is content unique?=
Yes. Each AI generation request produces unique output.

=Does it work with Gutenberg?=
Yes. Full integration via dedicated meta box.

=Does it work with Classic Editor?=
Yes. Automatically supported.

=Can NeuroContent search the internet before generating articles?=
Yes. When **Web Search** is enabled for a trigger, NeuroContent can search the internet for factual information before generating the article. This helps produce more accurate and up-to-date content.

=Does NeuroContent include analytics for AI content generation?=
Yes. NeuroContent includes an Analytics tab that displays activity and performance data for AI-generated content.
The free version shows basic statistics, while **NeuroContent PRO unlocks the full analytics dashboard with detailed metrics such as token usage, costs, and performance insights.**

---

== Screenshots ==

1. NeuroContent AI - Meta Box inside WordPress Editor  
2. Settings Page – API Key and Automation Triggers  
3. Triggers Management Interface  

---

== Upgrade Notice ==
= 1.0.9 =
Adds smart deactivation feedback collection with improved analytics insights and performance tracking.

== Changelog ==

= 1.0.9 =
Adds smart deactivation feedback collection with improved analytics insights and performance tracking.

= 1.0.8 =
* Added full support for OpenAI GPT Image models for improved image generation quality
* Updated image size handling with automatic migration from legacy DALL·E formats

= 1.0.7 =
* Fix: Resolved a fatal activation error caused by a missing function neurocontent_create_logs_table(), which triggered:

= 1.0.6 =
* New Feature: Web Search support for AI article generation using OpenAI Web Search.
* New PRO Feature: AI Content Analytics dashboard with detailed metrics for token usage, article generation, costs, and workflow performance.

= 1.0.5 =
* New PRO Feature: Social Share integration for automatic Facebook posting.

= 1.0.4 =
* Improved prompt handling and sanitization for maximum stability and data integrity.
* Enhanced support for long, multi-line AI prompts with consistent line endings.
* Prevented accidental loss of trigger prompts when saving settings.
* Optimized internal data handling to ensure reliable storage of complex prompt content.
* General hardening of settings logic for improved reliability in advanced configurations.

= 1.0.3 =
* New PRO Feature: One-Click Article Approval via secure email notifications.

= 1.0.2 =
* New Feature: You can pick ChatGPT model

= 1.0.1 =
* Compatibility with WordPress 6.9

= 1.0.0 =
* First public release