Export content (WXR)
wp_export_contentExport content as a WordPress WXR file, the format of Tools › Export (posts, pages and other exportable post types with their comments, terms and authors); a site blueprint of structure and settings is wp_blueprint_export. Needs the export capability. Because a WXR export can contain private and draft content, it is written to an uploads subfolder (ab-mcp-exports) under an unguessable filename, and no URL to it is returned; each call writes a new file. The folder carries an Apache rule that denies web access; on servers that ignore it (nginx, or Apache without .htaccess) the unguessable name is the protection. The MCP file tools do not reach that folder: the file is fetched through the server's filesystem or SFTP, and the way to remove it is to delete it there. Returns exported, file, path, upload_path, bytes, retrieve_with and a note. No matching posts still gives a WXR file without items; only an export that produced no output at all is an error. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Only entries in this status, e.g. publish, draft or private. WordPress applies it only when post_type is post or page; otherwise every status but auto-draft is exported. | |
| post_type | No | all (default): every post type that allows export; or one post type such as post, page, attachment or a custom one. WordPress exports posts instead for a type that does not allow export. |