[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

WordPress Administration Importer API.

File Size: 95 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  get_importers()
  register_importer()
  wp_import_cleanup()
  wp_import_handle_upload()

Functions
Functions that are not part of a class:

get_importers()   X-Ref
Retrieve list of importers.

return: array

register_importer( $id, $name, $description, $callback )   X-Ref
Register importer for WordPress.

param: string $id Importer tag. Used to uniquely identify importer.
param: string $name Importer name and title.
param: string $description Importer description.
param: callback $callback Callback to run.
return: WP_Error Returns WP_Error when $callback is WP_Error.

wp_import_cleanup( $id )   X-Ref
Cleanup importer.

Removes attachment based on ID.

param: string $id Importer ID.

wp_import_handle_upload()   X-Ref
Handle importer uploading and add attachment.

return: array Uploaded file's details on success, error message on failure



Generated: Fri May 25 03:56:23 2012 Hosted by follow the white rabbit.