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 (Wenpai Xin Si) solves exactly this problem: once installed, it automatically registers eight domestic AI service providers into WordPress 7.0’s Connectors system—immediately visible, configurable, and ready to use from the WordPress 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 provider displays its name, icon, and description
  • You can enter its API Key
  • The system automatically validates whether the key is valid
  • Connection status is clearly shown

Three providers are pre-registered by default:

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

All three are effectively unusable in mainland China (requiring VPN access, overseas accounts, and foreign credit cards).

What WPMind Does

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

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

All eight providers operate 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 Xin Si, 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 → “Xin Si”), 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 to Connectors

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

4. Use with AI Feature Plugins

Connectors itself is infrastructure—it manages AI connections but doesn’t provide AI features directly. To use AI functions 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 registration—only requires a mainland Chinese mobile number
  • 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 is not yet 7.0—what should I do?
A: WPMind supports older WordPress versions too. Prior to 7.0, it functions as a standalone AI endpoint manager. Upon upgrading to WordPress 7.0, it seamlessly integrates with the Connectors system—no extra configuration needed.

Q: Can I configure multiple providers simultaneously?
A: Yes. You may enable multiple domestic AI providers at once—they’ll all appear in the Connectors page. Which one gets used depends on the calling logic of your AI feature 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 REST APIs. 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 foundational functionality. This article focuses specifically on integrating native WordPress 7.0 AI capabilities with large domestic language models.


Related 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