Worddown
Worddown

Worddown

0/5 (0 ratings) 40 active installs Updated Jun 23, 2026

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
  • $contextWorddown\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.

Build Process

The plugin uses Vite for asset compilation. Development requirements:

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