WordPress 7.0 Introduces Native AI—How Can Users in China Use It? WPMind Enables One-Click Integration with Domestic Large Language Models

WordPress 7.0 will natively integrate AI capabilities, introducing a new core system called Connectors—a unified interface for managing AI services. However, by default, it only includes three overseas providers: Anthropic, Google, and OpenAI.

For users in mainland China, these three providers are either inaccessible or suffer from high latency and poor Chinese-language performance.

WPMind solves exactly this problem: once installed, it automatically registers eight domestic AI providers with WordPress 7.0’s Connectors system—immediately visible, configurable, and ready to use from the admin settings page.

What Is WP 7.0 Connectors?

Go to your WordPress admin dashboard → Settings → Connectors, and you’ll see an AI service management interface:

  • Each AI provider displays its name, icon, and description
  • You can enter an API key
  • Keys are validated automatically
  • Connection status is shown in real time

By default, three providers are pre-registered:

Provider Description
Anthropic Claude series models
Google Gemini + Imagen
OpenAI GPT + DALL·E

All three are essentially unusable in mainland China (requiring VPN access, overseas account registration, and binding of an overseas credit card).

What Does WPMind Do?

After installing and activating WPMind, the Connectors page adds eight domestic AI providers:

Provider Models Key Features
DeepSeek DeepSeek V3/R1 Exceptional cost-efficiency and strong Chinese-language understanding
Qwen (Tongyi Qwen) Qwen series Alibaba Cloud—stable and reliable
Zhipu AI GLM series Developed by Tsinghua University—excellent academic reasoning
Moonshot (Yuezhianmian) Kimi series Extremely long context window—ideal for processing lengthy documents
Doubao Doubao series ByteDance—fast response times
SiliconFlow Multi-model aggregation One API key grants access to multiple models
Baidu ERNIE ERNIE series Baidu—deep Chinese language comprehension
MiniMax MiniMax series Strong multimodal capabilities

All eight providers host servers within mainland China—no VPN required, low latency, and consistently superior Chinese-language performance compared to GPT.

Setup Steps

1. Install WPMind

In your WordPress admin dashboard, go to Plugins → Add New, then search for WPMind or Wenpai Xinsi (Chinese name), install, and activate.

Alternatively, download it directly from Wenpai Open Source.

2. Configure Domestic AI Endpoints

Navigate to the WPMind settings page (left-hand menu: Xinsi), enable the domestic AI providers you wish to use, and enter their respective API keys.

API key application links for each provider:

3. Automatic Registration with Connectors

Once configured, WPMind automatically registers all enabled providers into WordPress 7.0’s Connectors system. Go to Settings → Connectors, and you’ll see the domestic AI providers listed—with connection status shown as “Connected.”

4. Use With AI-Enabled Plugins

Connectors itself is infrastructure—it provides AI connection management only. To use AI features inside the editor (e.g., generating titles, summaries, translations), you’ll need additional plugins that leverage the WordPress Connectors API—such as the official AI Experiments plugin.

The full call chain looks like this:

Editor AI Button → Abilities API → AI Client → WPMind Provider → Domestic AI Service

Recommended Starting Point

If you’re unsure which provider to choose first, we recommend starting with DeepSeek:

  • Simple sign-up—only a Chinese mobile number required
  • Extremely affordable (~¥1 per million tokens)
  • Chinese-language capability on par with GPT-4o
  • Servers located in mainland China—latency < 200ms

Frequently Asked Questions (FAQ)

Q: My WordPress version isn’t yet 7.0—what should I do?
A: WPMind supports older WordPress versions too. Before 7.0, it functions as a standalone AI endpoint manager; upon upgrading to 7.0, it seamlessly integrates with the Connectors system—no extra steps needed.

Q: Can I configure multiple providers simultaneously?
A: Yes. You may enable multiple domestic AI providers—they’ll all appear in the Connectors list. Which one gets used depends on the calling logic of your AI-enabled plugin.

Q: Are my API keys secure?
A: Yes. WordPress 7.0’s Connectors system includes built-in key masking: raw keys are never exposed via the REST API. Additionally, keys can be configured via environment variables or PHP constants—ideal for production environments.

Q: How does this differ from the existing WPMind user guide?
A: The WPMind User Guide covers WPMind’s core functionality. This document focuses specifically on integrating native WordPress 7.0 AI (Connectors) with large domestic language models.


Further Reading:

WPMind 为 WordPress 7.0 的 Connectors 系统提供了关键的本地化支持,解决了国内用户的核心痛点。

关于 Connectors 系统的技术实现,开发者可以关注以下几点:

1. 注册连接器的钩子 (Hooks)
WPMind 使用 wp_connectors_register 钩子来添加新的 AI 服务商。其核心代码结构如下:

add_filter( 'wp_connectors_register', 'wpmind_register_connectors' );
function wpmind_register_connectors( $connectors ) {
    $connectors[] = array(
        'id'          => 'deepseek',
        'name'        => __( 'DeepSeek', 'wpmind' ),
        'description' => __( 'DeepSeek AI service', 'wpmind' ),
        'icon'        => 'data:image/svg+xml;base64,...',
        'api_base'    => 'https://api.deepseek.com',
        'capabilities' => array( 'chat', 'embeddings' ),
    );
    return $connectors;
}

2. 验证 API Key 的机制
Connectors 系统会通过 REST API 端点验证 Key 的有效性。WPMind 需要为每个服务商实现对应的验证回调:

add_filter( 'wp_connector_validate_key_deepseek', 'wpmind_validate_deepseek_key' );
function wpmind_validate_deepseek_key( $api_key ) {
    $response = wp_remote_post( 'https://api.deepseek.com/v1/chat/completions', array(
        'headers' => array( 'Authorization' => 'Bearer ' . $api_key ),
        'body'    => json_encode( array( 'model' => 'deepseek-chat' ) ),
        'timeout' => 15,
    ) );
    return ! is_wp_error( $response ) && wp_remote_retrieve_response_code( $response ) === 200;
}

3. 向后兼容性处理
对于 WordPress 7.0 之前的版本,WPMind 需要提供独立的设置界面。可以通过版本检测来实现:

if ( version_compare( get_bloginfo( 'version' ), '7.0', '>=' ) ) {
    // 使用原生 Connectors 系统
    add_filter( 'wp_connectors_register', 'wpmind_register_connectors' );
} else {
    // 提供独立的管理界面
    add_action( 'admin_menu', 'wpmind_add_legacy_menu' );
}

开发建议:

  • 在生产环境中,建议通过 WP_CONNECTORS_API_KEYS 常量或环境变量来配置 API Key,避免在数据库中存储明文
  • 使用 WordPress 的瞬态缓存 (Transients) 来缓存模型列表和配额信息,减少 API 调用
  • 为每个 AI 服务商实现速率限制和错误重试机制

相关技术文档可参考 WordPress Connectors API。