=== GrowthNation ===
Contributors: growthnation
Tags: GrowthNation, content, blog, draft, api
Requires at least: 5.5
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple and secure integration to push draft blog posts from GrowthNation to your WordPress site.

== Description ==

GrowthNation provides a simple API integration that allows you to create draft blog posts directly from the GrowthNation platform. This lightweight plugin uses WordPress's built-in authentication system for maximum security and reliability.

= Features =

- **Simple Authentication**: Uses standard WordPress username/password authentication
- **Two Endpoints**: Connection testing and draft post creation
- **Featured Images**: Automatically download and set featured images from URLs
- **Draft-Only**: All posts are created as drafts for your review
- **Lightweight**: No external dependencies or complex libraries

= How it works =

1. Install and activate plugin
2. In GrowthNation, add your WordPress site URL and credentials
3. Test the connection to verify everything works
4. Start pushing draft blog posts from GrowthNation
5. Review and publish drafts from your WordPress admin

== Requirements ==

- WordPress 5.5 or higher
- PHP 7.4 or higher
- User account with 'edit_posts' capability

== Installation ==

1. Upload the `growthnation` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. That's it! The plugin is now ready to receive draft posts from GrowthNation

No additional configuration is required.

== Security ==

- Uses WordPress core authentication (`wp_authenticate`)
- All requests require valid WordPress credentials
- Users must have 'edit_posts' capability
- All input is sanitised before processing
- Posts are created as drafts only
- Featured images are validated and securely downloaded
- Only allows JPEG, PNG, GIF, and WebP image formats

== Frequently Asked Questions ==

= Is this plugin secure? =

Yes! The plugin uses WordPress's built-in authentication system and follows WordPress security best practices.

= Can I use this with other plugins? =

Yes! This plugin has no external dependencies and won't conflict with other plugins.

= What permissions do I need? =

You need a WordPress user account with 'edit_posts' capability (Editor or Administrator role).

= Are posts published automatically? =

No, all posts are created as drafts. You must manually review and publish them from WordPress admin.

= Can I include featured images? =

Yes! Simply include a `featured_image_url` parameter with your image URL. The plugin will automatically download and set it as the featured image for your post.

== Screenshots ==

1. This plugin has no admin interface - it works seamlessly in the background

== Support ==

For support, please contact us through the GrowthNation platform at https://growthnation.ai