Title: Worddown
Author: Adam Alexandersson
Published: <strong>2025 年 8 月 29 日</strong>
Last modified: 2026 年 6 月 23 日

---

搜索插件

![](https://ps.w.org/worddown/assets/banner-772x250.jpg?rev=3352515)

![](https://ps.w.org/worddown/assets/icon-256x256.jpg?rev=3352515)

# Worddown

 作者：[Adam Alexandersson](https://profiles.wordpress.org/adamalexandersson/)

[下载](https://downloads.wordpress.org/plugin/worddown.1.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/worddown/#description)
 * [评价](https://cn.wordpress.org/plugins/worddown/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/worddown/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/worddown/#developers)

 [支持](https://wordpress.org/support/plugin/worddown/)

## 描述

Worddown is a powerful WordPress plugin that enables you to export your pages and
posts to markdown files, making them perfect for integration with AI chatbots and
other markdown-based systems.

#### Key Features

 * Export pages and posts to markdown files
 * Support for custom page builders (ACF Flexible Content, Elementor, etc.)
 * REST API endpoints for programmatic access
 * WP-CLI commands for automation
 * Multilingual support
 * Background export mode for large sites
 * Customizable HTML content filters

#### Export Methods

 1. WordPress Admin Dashboard
 2. WP-CLI Commands
 3. REST API Endpoints

#### WP-CLI Support

Export your content directly from the command line:

    ```
    wp worddown export
    ```

For large sites, use background mode:

    ```
    wp worddown export --background
    ```

#### REST API

Access export functionality programmatically through REST API endpoints:

 * GET /wp-json/worddown/v1/files – List all exported markdown files
 * GET /wp-json/worddown/v1/files/{post_id} – Get specific file content
 * POST /wp-json/worddown/v1/export – Trigger export

#### Custom HTML Content Filters

Customize your markdown output using WordPress filters:

    ```
    add_filter('worddown_custom_html_content', function($content, $post_id, $post_type) {
        if ($post_type === 'page') {
            $content .= '<div>My custom HTML for page ' . $post_id . '</div>';
        }
        return $content;
    }, 10, 3);
    ```

#### Custom Metadata Filter

Add or override YAML front matter keys after Worddown assembles core metadata (respecting
your Metadata to include settings):

    ```
    add_filter('worddown_custom_metadata', function($meta, $post_id, $context) {
        $meta['reading_time'] = get_post_meta($post_id, 'reading_time', true);
        return $meta;
    }, 10, 3);
    ```

Parameters:

 * `$meta` — Front matter array after admin toggles (add keys or overwrite existing
   ones)
 * `$post_id` — Post ID being exported
 * `$context` — `Worddown\Export\PostContext` with preloaded post data (read-only)

#### Available Translations

 * English
 * Swedish (sv_SE)

### Development

For development instructions and advanced usage, please visit the [plugin repository](https://github.com/adamalexandersson/worddown).

#### Build Process

The plugin uses Vite for asset compilation. Development requirements:

 * Node.js 16.0 or higher
 * npm 8.0 or higher

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/worddown` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Configure the plugin settings through the ‘Worddown’ menu item in the WordPress
    admin panel

## 常见问题

### Can I use this with my custom page builder?

Yes! Worddown provides filters that allow you to inject custom HTML content from
any page builder before the markdown conversion process.

### Does it support multisite?

Yes, Worddown works with WordPress multisite installations. You can use the –url
parameter with WP-CLI commands to target specific subsites.

### How do I handle large exports?

For large sites, we recommend using either the background mode via WP-CLI (`wp worddown
export --background`) or the REST API with the background parameter enabled.

### How do I update translations or fix missing strings?

Translations for plugins hosted on WordPress.org are delivered as **language packs**(
files under `wp-content/languages/plugins/`). WordPress checks for newer packs when
you check for updates.

 * **Dashboard:** Go to _Dashboard  Updates_ and use **Update translations** (when
   WordPress offers it), or update plugins/themes and let WordPress refresh translations
   in the same flow.
 * **WP-CLI:** Run `wp language plugin update worddown` (or `wp language core update`
   to refresh all language data).
 * **Automatic updates:** By default, WordPress can install translation updates 
   in the background (`WP_AUTO_UPDATE_TRANSLATION` is true unless your host disables
   it).

New or changed strings appear in language packs after translators update them on
[translate.wordpress.org](https://translate.wordpress.org/). You cannot force that
from inside the plugin; releasing a new plugin version makes new strings available
for translators, and updated `.mo` files reach sites through the normal translation
update process.

If you use **Loco Translate** or placed a **custom** `worddown-*.mo` in `wp-content/
languages/plugins/`, that file overrides the pack until you **re-sync** in Loco 
or **delete** the override so WordPress can download the current pack again.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Worddown」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Adam Alexandersson ](https://profiles.wordpress.org/adamalexandersson/)

「Worddown」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/worddown/contributors)
为本插件所做的贡献。

[帮助将「Worddown」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/worddown)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/worddown/)，查看[SVN仓库](https://plugins.svn.wordpress.org/worddown/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/worddown/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/worddown/)。

## 更新日志

= 1.2.2
 * Extract export metadata into MetaBuilder with PostContext and add worddown_custom_metadata
filter for extending YAML front matter

= 1.2.1
 * Fix export crash when HTML preprocessing fails on malformed or invalid
content

= 1.2.0
 * MCP support via WordPress Abilities API * Fix admin menu SVG icon for
WordPress 7

= 1.1.4
 * Added configurable meta data and optional author metadata: Allow per-
field toggles for standard YAML keys and an optional nested author block (username,
display name, email, roles). Add field_group support in settings UI; merge defaults
for REST; keep schema in sync with setConfig.

= 1.1.3
 * Add before/after export hooks to adapter. The Modularity adapter now 
uses these hooks for pre/post processing, reducing coupling and keeping the core
exporter generic.

= 1.1.2
 * Fixes and improvements * Added testet up to WordPress 6.9

= 1.1.1
 * Fixes and improvements

= 1.1.0
 * Implement atomic export using pending directory * General improvements

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**2 周前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/worddown/) 和 [Swedish](https://sv.wordpress.org/plugins/worddown/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/worddown)
 * 标签
 * [AI](https://cn.wordpress.org/plugins/tags/ai/)[chatbot](https://cn.wordpress.org/plugins/tags/chatbot/)
   [content](https://cn.wordpress.org/plugins/tags/content/)[export](https://cn.wordpress.org/plugins/tags/export/)
   [markdown](https://cn.wordpress.org/plugins/tags/markdown/)
 *  [高级视图](https://cn.wordpress.org/plugins/worddown/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/worddown/reviews/)

## 贡献者

 *   [ Adam Alexandersson ](https://profiles.wordpress.org/adamalexandersson/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/worddown/)