WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/export wp

Description

Generates a WXR export file for download.

Usage

 <?php
   $args = array( 
               'content'    => 'all',
               'author'     => false,
               'category'   => false,
               'start_date' => false,
               'end_date'   => false,
               'status'     => false,
   );
   export_wp( $args );
 ?>

Parameters

$args
(array) (required)
Default: None

Arguments

content
(string) (optional) A registered post type.
Default: 'all'

Return Values

Notes

Requires including /wp-admin/includes/export.php if being used in a plugin.

Change Log

Source File

export_wp() is located in wp-admin/includes/export.php

Related

This page is marked as incomplete. You can help Codex by expanding it.