BlockCode Exporter
BlockCode Exporter

BlockCode Exporter

0/5 (0 ratings) — active installs Updated Sep 24, 2026
Export block code in the Pages list, alongside the usual row actions.

Export block code in the Pages list, alongside the usual row actions.

BlockCode Exporter saves the block markup behind a WordPress post or page. A list export downloads the saved source unchanged, including block comments, settings, HTML, and whitespace.

Use Export block code in a Posts or Pages list to download the saved version. In the block editor, open the three-dot Options menu and choose Export block code to download what is currently in the editor, including unsaved changes. You can also copy the code to your clipboard.

For several posts or pages, select them in the list and choose Export block code from Bulk actions. The download is a ZIP with a separate file for each item.

Files use .html by default because WordPress block markup contains HTML. You can choose .md or .txt if those extensions suit your workflow. The content is the same in every format: choosing .md does not convert it to Markdown, and .html is not a complete rendered web page.

The plugin does not change your posts or send their content to another service. Exports include the block markup, not media files, theme styles, custom fields, or the content behind a synced-block reference.

Developed by George Zamfir.

Developer notes

List exports return the saved post_content unchanged unless a site uses the blockcode_exporter_content filter. Editor exports use the current block editor content and do not run that PHP filter. The blockcode_exporter_filename and blockcode_exporter_is_post_type_enabled filters apply to list exports. Filenames are sanitized after filtering, and list requests still require permission to edit each item.

Bulk exports are limited to 100 items and 20 MiB of source per request. ZIP filenames include post IDs to avoid collisions.

The GPL-licensed source and build instructions are included in the installation ZIP.