[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> export.php (summary)

WordPress Export Administration API

File Size: 679 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions

  export_wp()
  wxr_cdata()
  wxr_site_url()
  wxr_cat_name()
  wxr_category_description()
  wxr_tag_name()
  wxr_tag_description()
  wxr_term_name()
  wxr_term_description()
  wxr_term_meta()
  wxr_authors_list()
  wxr_nav_menu_terms()
  wxr_post_taxonomy()
  wxr_filter_postmeta()

Functions
Functions that are not part of a class:

export_wp( $args = array()   X-Ref
Generates the WXR export file for download.

Default behavior is to export all content, however, note that post content will only
be exported for post types with the `can_export` argument enabled. Any posts with the
'auto-draft' status will be skipped.

param: array $args {
since: 2.1.0
since: 5.7.0 Added the `post_modified` and `post_modified_gmt` fields to the export file.

wxr_cdata( $str )   X-Ref
Wrap given string in XML CDATA tag.

param: string $str String to wrap in XML CDATA tag.
return: string
since: 2.1.0

wxr_site_url()   X-Ref
Return the URL of the site

return: string Site URL.
since: 2.5.0

wxr_cat_name( $category )   X-Ref
Output a cat_name XML tag from a given category object

param: WP_Term $category Category Object
since: 2.1.0

wxr_category_description( $category )   X-Ref
Output a category_description XML tag from a given category object

param: WP_Term $category Category Object
since: 2.1.0

wxr_tag_name( $tag )   X-Ref
Output a tag_name XML tag from a given tag object

param: WP_Term $tag Tag Object
since: 2.3.0

wxr_tag_description( $tag )   X-Ref
Output a tag_description XML tag from a given tag object

param: WP_Term $tag Tag Object
since: 2.3.0

wxr_term_name( $term )   X-Ref
Output a term_name XML tag from a given term object

param: WP_Term $term Term Object
since: 2.9.0

wxr_term_description( $term )   X-Ref
Output a term_description XML tag from a given term object

param: WP_Term $term Term Object
since: 2.9.0

wxr_term_meta( $term )   X-Ref
Output term meta XML tags for a given term object.

param: WP_Term $term Term object.
since: 4.6.0

wxr_authors_list( array $post_ids = null )   X-Ref
Output list of authors with posts

param: int[] $post_ids Optional. Array of post IDs to filter the query by.
since: 3.1.0

wxr_nav_menu_terms()   X-Ref
Output all navigation menu terms

since: 3.1.0

wxr_post_taxonomy()   X-Ref
Output list of taxonomy terms, in XML tag format, associated with a post

since: 2.3.0

wxr_filter_postmeta( $return_me, $meta_key )   X-Ref

param: bool   $return_me
param: string $meta_key
return: bool



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1