=== Api.co.id GhostWriter === Contributors: apicoid Donate link: https://api.co.id Tags: content-generation, ai, article-generator, seo, automation Requires at least: 6.2 Tested up to: 6.9 Stable tag: 1.3.2 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html AI-powered content generation plugin that connects to Api.co.id to automatically create and rewrite articles with SEO optimization. == Description == Api.co.id GhostWriter is a powerful WordPress plugin that integrates with Api.co.id's AI service to help you generate and rewrite high-quality content automatically. Perfect for bloggers, content creators, and website owners who want to streamline their content creation process. = Key Features = * **AI-Powered Article Generation**: Create complete articles with customizable parameters including title, keywords, language, writing style, tone, search intent, and more. * **Content Rewriting**: Rewrite existing articles from any URL with the same level of customization and control. * **Automatic Related Articles**: Smart internal linking system that automatically inserts related articles based on categories and word count (1 related article per 500 words). * **SEO Integration**: Seamless integration with popular SEO plugins including Yoast SEO, RankMath, All in One SEO, SEOPress, The SEO Framework, Squirrly SEO, and Premium SEO Pack. Automatically sets focus keywords and meta descriptions. * **Image Generation**: Optional automatic featured image generation based on article titles. * **Category Management**: Assign WordPress categories to generated articles for better organization. * **Settings Management**: Configure default values for article generation parameters to speed up your workflow. * **Article Management**: View and manage all generated articles with detailed metadata including keywords, summaries, and generation data. * **Secure API Key Validation**: Secure API key validation system ensures only valid keys can be used. = How It Works = 1. Enter and validate your API key from Api.co.id 2. Configure default settings for article generation (optional) 3. Generate new articles or rewrite existing ones with customizable parameters 4. Articles are automatically created as drafts with SEO optimization 5. Related articles are automatically linked based on categories 6. Manage all your generated content from one central location = Requirements = * WordPress 6.2 or higher * PHP 7.4 or higher * Valid API key from Api.co.id (get yours at https://api.co.id) == Installation == 1. Upload the plugin files to the `/wp-content/plugins/apicoid-ghostwriter` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Navigate to GhostWriter in the WordPress admin menu. 4. Enter your API key from Api.co.id and click "Validate API Key". 5. Once validated, you can start generating articles or configure default settings. == Frequently Asked Questions == = Do I need an API key? = Yes, you need a valid API key from Api.co.id to use this plugin. Get your API key at https://api.co.id = What happens if my API key is invalid? = You will not be able to access the Settings and Article Generator pages until you validate a valid API key. = Can I customize the generated articles? = Yes! You can customize various parameters including language, writing style, tone, search intent, point of view, creativity level, and target audience. = Does the plugin work with SEO plugins? = Yes, GhostWriter integrates with popular SEO plugins including Yoast SEO, RankMath, All in One SEO, SEOPress, The SEO Framework, Squirrly SEO, and Premium SEO Pack. = How does the automatic related articles feature work? = The plugin automatically inserts related articles from your published posts that share the same categories. It calculates the number of related articles based on word count (1 per 500 words) and places them above H2 headings. = Can I rewrite existing articles? = Yes, you can rewrite articles by providing a URL. The plugin will fetch the content and rewrite it according to your specified parameters. = Are generated articles published immediately? = No, all generated articles are created as drafts, giving you the opportunity to review and edit them before publishing. == External services == This plugin connects to the Api.co.id external API service to provide AI-powered content generation and management features. The plugin does not function without a valid API key from this service. = Api.co.id Content Generation API = **Service:** Api.co.id (https://api.co.id) provides AI-powered article generation, content rewriting, image generation, and article suggestion services. **When data is sent:** * When validating your API key (on plugin setup and settings page). * When generating a new article (title, keywords, language, writing style, tone, and other content parameters are sent). * When rewriting an article from a URL (the URL and customization parameters are sent). * When generating article suggestions (category data and existing article information are sent). * When generating article suggestions by category (category content and metadata are sent). * When generating an image (the image prompt/title is sent). **What data is sent:** * Your API key (for authentication via the `x-api-co-id` header). * Article generation parameters: title, keywords, language, writing style, tone, search intent, point of view, creativity level, target audience, and additional prompts. * For rewrites: the source article URL and customization parameters. * For suggestions: category names and published article data (titles, keywords, links). * For image generation: the text prompt (typically the article title). **Service links:** * Service website: https://api.co.id * Terms of Service: https://dashboard.api.co.id/terms * Privacy Policy: https://api.co.id/privacy-policy == Screenshots == 1. Main plugin page with API key validation 2. Article Generator page showing list of generated articles 3. Generate Article modal with all customization options 4. Settings page for configuring default values 5. Article list with metadata and management options == Changelog == = 1.3.2 = * Multiple Article Presets: New preset management system to save and reuse article generation settings (language, writing style, tone, search intent, point of view, creativity level, audience, and more) * Preset CRUD on Settings Page: Create, edit, and delete presets from the GhostWriter Settings page * Preset Selector in All Modals: Preset dropdown in Generate, Rewrite, Generate by Category, and Support Article modals with auto-fill on selection * Related Article Label per Preset: Configurable label text (e.g. "Related Article", "Artikel Terkait") stored per preset * Live Preview for Related Article Label: Real-time preview on Settings page using actual published posts * Auto-migration to Presets: Existing default settings automatically migrated into a "Default" preset on first load * Settings Page Redesigned: Presets are now the sole source of truth for article generation defaults * Fixed preset not applied in Generate by Category and Support Article cloned forms * Fixed checkboxes and related article label not following preset values * Fixed related article label not sent to server and not used when building related article links = 1.3.1 = * Auto Google Index: New feature to automatically submit post and page URLs to Google Indexing API when published or updated * Google Indexing API integration: Full integration with Google's Indexing API using service account authentication (JWT/OAuth2) * Submission log: Comprehensive logging system with database table to track all submission attempts (success/failure) with pagination * Encrypted service account storage: Service account JSON keys are encrypted using AES-256-CBC before storing in database * Test connection feature: Built-in test connection button to verify Google Indexing API credentials before enabling auto-submission * Setup guide with tutorial link: Added step-by-step setup guide with link to full tutorial at https://api.co.id/blog/auto-index-ghostwriter/ * Auto-submit on publish/update: Automatically submits URLs to Google when posts or pages are published or updated (for post and page post types only) * Log management: View submission history with status indicators, source tracking (auto/test), and clear logs functionality = 1.3.0 = * Generate Article by Category: New feature to generate article suggestions based on selected category, allowing users to get AI-powered article ideas from existing category content * Auto link related articles: When generating articles from category suggestions, the plugin automatically includes contextual links to related articles from the same category * Enhanced category-based workflow: Streamlined workflow for generating multiple articles from a single category with intelligent suggestion system * Improved modal layout: Two-column layout for category suggestions and article generation form for better user experience * Category suggestion API integration: Integrated with Api.co.id's category-based article suggestion endpoint for intelligent content recommendations = 1.2.4 = * Added pagination to Article Generator page: Implemented pagination for the article list with configurable page size * Configurable articles per page: Added setting in Settings page to configure number of articles displayed per page (default: 30) * Improved article list navigation: Added pagination controls with page numbers, previous/next buttons, and "Showing X-Y of Z posts" information = 1.2.3 = * Generate image from media library: Added "Generate Image" button in WordPress media library sidebar, allowing users to generate images from prompts directly within the media library interface * Fixed duplicate image insertion: Fixed issue where clicking "Insert into post" after generating an image would insert the image twice * Improved media library integration: Enhanced integration with WordPress media library for seamless image generation workflow * Code cleanup: Removed all console.log statements for production-ready code = 1.2.2 = * Add more configurable functions: Added optional "Treat as Support Article" checkbox when generating articles from suggestions, allowing users to choose whether to include contextual backlinks to the main article * Fix generate image button not showing on empty featured image: Fixed issue where the "Generate Featured Image" button was not appearing in the Classic Editor when no featured image was set * Improved featured image generation: Featured image now updates dynamically without page reload in Block Editor = 1.2.1 = * Generate featured image from post edit page: Added "Generate Featured Image" button in the Featured Image meta box on post edit pages, allowing users to generate and set featured images directly from the post editor = 1.2.0 = * Auto generate support article: New feature to automatically generate support articles for published articles with intelligent linking to pillar articles * Fix API key validation not working: Fixed issue where API key validation button was not functioning properly = 1.1.0 = * Smarter AI: Enhanced AI capabilities for better content generation * Compressed image + WebP format: Images are now automatically compressed and converted to WebP format for better performance * Bugfix: Fixed issue where articles and images were not being generated properly * Added more settings: Configurable related articles feature, additional customization options in generate and rewrite forms * Added plugin action links: Quick access to GhostWriter settings from plugins page = 1.0.0 = * Initial release * AI-powered article generation * Content rewriting from URL * Automatic related article linking * SEO plugin integration * Image generation support * Category management * Settings management * Secure API key validation == Upgrade Notice == = 1.3.1 = This update introduces Auto Google Index feature that automatically submits your post and page URLs to Google Indexing API when published or updated. Includes comprehensive submission logging, encrypted service account storage, and test connection functionality. See the new "Auto Google Index" menu for setup instructions. = 1.3.0 = This update introduces "Generate Article by Category" feature with AI-powered suggestions and automatic related article linking. Includes improved two-column modal layout for better workflow. = 1.2.4 = This update adds pagination to the Article Generator page, making it easier to navigate through large lists of articles. You can now configure the number of articles displayed per page in the Settings page (default: 30). = 1.2.3 = This update adds the ability to generate images directly from the WordPress media library, fixes duplicate image insertion issues, and includes code cleanup. Update now to access the new media library image generation feature. = 1.2.2 = This update adds more configurable options for support article generation and fixes the generate image button not appearing when no featured image is set. Featured images now update dynamically without page reload. = 1.2.1 = This update adds the ability to generate featured images directly from the post edit page. Simply click the "Generate Featured Image" button in the Featured Image meta box to automatically create and set a featured image based on your post title. = 1.2.0 = This update adds the ability to automatically generate support articles for your published content and fixes the API key validation issue. Update now to access the new support article generation feature. = 1.1.0 = This update includes smarter AI, compressed WebP images, bug fixes for article and image generation, and additional settings. Update now for improved performance and new features. = 1.0.0 = Initial release of Api.co.id GhostWriter. Get your API key at https://api.co.id to start generating content automatically.