Title: MILEHA AiContent
Author: mileha
Published: <strong>ජූනි 27, 2025</strong>
Last modified: ජූනි 27, 2025

---

Search plugins

![](https://ps.w.org/mileha-aicontent/assets/banner-772x250.png?rev=3318978)

![](https://ps.w.org/mileha-aicontent/assets/icon-256x256.png?rev=3318978)

# MILEHA AiContent

 By [mileha](https://profiles.wordpress.org/mileha/)

[Download](https://downloads.wordpress.org/plugin/mileha-aicontent.1.0.1.zip)

 * [Details](https://si.wordpress.org/plugins/mileha-aicontent/#description)
 * [Reviews](https://si.wordpress.org/plugins/mileha-aicontent/#reviews)
 *  [Installation](https://si.wordpress.org/plugins/mileha-aicontent/#installation)
 * [Development](https://si.wordpress.org/plugins/mileha-aicontent/#developers)

 [Support](https://wordpress.org/support/plugin/mileha-aicontent/)

## Description

MILEHA AiContent integrates the power of Google’s Gemini API directly into your 
WordPress block editor. With a simple and intuitive interface, you can generate 
complete, well-structured blog posts from just a few keywords. The plugin creates
native WordPress blocks for headings, paragraphs, and lists, allowing you to edit
the generated content just like any other part of your post. It also features a 
smart title-setting function that automatically populates your post’s main title
field.

**Please note:** This plugin relies on an external third-party service to function.
See the “Third-Party Service Disclosure” section for more details.

For security and compliance, the plugin requires you to accept a disclaimer before
use and resets this acceptance upon deactivation, ensuring administrative awareness.
All settings and API keys are stored securely within your WordPress database. This
plugin is perfect for content creators, bloggers, and marketers who want to speed
up their writing workflow while maintaining full control over the final output.

### Third-Party Service Disclosure

This plugin connects to the Google Gemini API to generate content. The use of this
service is essential for the plugin’s main functionality.

 * **Service Used:** Google Gemini API, provided by Google.
 * **Purpose:** To process the keywords you provide and generate a structured blog
   post.
 * **Data Sent to the Service:** When you click the “Generate & Insert Post” button
   in the editor, the following data is transmitted to Google’s servers:
    - Your personal Gemini API key for authentication.
    - The keywords you entered in the generator block, embedded within a structured
      prompt.
 * **Links to Service Terms:** By using the Gemini API, you are subject to Google’s
   terms and policies. Please review them carefully.
    - **Google AI Terms of Service:** https://ai.google.dev/terms
    - **Google Privacy Policy:** https://policies.google.com/privacy

## Screenshots

 * [[
 * The generator block in the editor.
 * [[
 * The settings page with the API key and disclaimer boxes.

## Blocks

This plugin provides 1 block.

 *   MILEHA AiContent

## Installation

 1. Upload the `mileha-aicontent` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the “MILEHA AiContent” settings page in your WordPress admin menu.
 4. Read and accept the disclaimer to enable the plugin’s functionality.
 5. Get your free API key from the Google AI Studio, paste it into the API Key field,
    and save your settings.
 6. Start creating content by adding the “MILEHA AiContent” block to any post or page!

## FAQ

### Where do I get a Gemini API key?

You can get a free API key from the [Google AI Studio](https://aistudio.google.com/app/apikey).
Simply create a new project and generate your key.

### Is the generated content unique?

The content is generated by Google’s Gemini model based on your keywords. While 
it is designed to be unique, we strongly recommend reviewing and editing all generated
content to match your personal style and to verify its accuracy.

### Is the plugin free?

Yes, this plugin is free to use. However, it requires a Google Gemini API key. Google
offers a generous free tier for the API, but usage beyond that tier may incur costs
from Google.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“MILEHA AiContent” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ mileha ](https://profiles.wordpress.org/mileha/)
 *   [ wpextend ](https://profiles.wordpress.org/wpextend/)

[Translate “MILEHA AiContent” into your language.](https://translate.wordpress.org/projects/wp-plugins/mileha-aicontent)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mileha-aicontent/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mileha-aicontent/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mileha-aicontent/)
by [RSS](https://plugins.trac.wordpress.org/log/mileha-aicontent/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * **Security & Transparency**: Added a comprehensive disclaimer and a detailed 
   disclosure for the mandatory use of the external Google Gemini API service, as
   required by WordPress plugin guidelines.
 * **Internationalization**: Removed the `load_plugin_textdomain` call to rely on
   the modern, wordpress.org-hosted language pack system.
 * **Feature**: Added live validation for the Gemini API key on the settings page
   with visual feedback (success/error).
 * **Feature**: A dedicated editor stylesheet (`editor.css`) has been added for 
   custom block UI styling.
 * **Improvement**: The entire plugin has been refactored into a modular structure(`
   inc/` directory) and the internal PHP code was further optimized for better maintainability
   and readability.
 * **Improvement**: Added multiple action and filter hooks to make the plugin highly
   extensible for future addons.
 * **Improvement**: Enhanced the settings page user experience; the API settings
   are now fully disabled until the disclaimer is accepted.
 * **Improvement**: Improved the block editor UI by moving the “Set post title automatically”
   option to the sidebar.
 * **Fix**: Hardened security by adding sanitization callbacks for settings and 
   correcting escaping and internationalization issues.
 * **Fix**: Hardened the logic on the settings page to prevent PHP errors and ensure
   the API key is not accidentally deleted when changing disclaimer consent.
 * **Fix**: Corrected a JavaScript dependency issue (‘wp-hooks’) that could cause
   the block to crash.

#### 1.0.0

 * Initial public release.

## Meta

 *  Version **1.0.1**
 *  Last updated **මාස 10ක් ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/mileha-aicontent/)
 * Tags
 * [AI](https://si.wordpress.org/plugins/tags/ai/)[block](https://si.wordpress.org/plugins/tags/block/)
   [content](https://si.wordpress.org/plugins/tags/content/)[Gemini](https://si.wordpress.org/plugins/tags/gemini/)
   [gutenberg](https://si.wordpress.org/plugins/tags/gutenberg/)
 *  [Advanced View](https://si.wordpress.org/plugins/mileha-aicontent/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/mileha-aicontent/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mileha-aicontent/reviews/)

## Contributors

 *   [ mileha ](https://profiles.wordpress.org/mileha/)
 *   [ wpextend ](https://profiles.wordpress.org/wpextend/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/mileha-aicontent/)