[ Index ]

PHP Cross Reference of WordPress




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

WordPress Administration Importer API.

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

Defines 6 functions


Functions that are not part of a class:

get_importers()   X-Ref
Retrieve list of importers.

return: array
since: 2.0.0

_usort_by_first_member( $a, $b )   X-Ref
Sorts a multidimensional array by first member of each top level member

Used by uasort() as a callback, should not be used directly.

return: int
since: 2.9.0
param: array $a
param: array $b

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

return: void|WP_Error Void on success. WP_Error when $callback is WP_Error.
since: 2.0.0
param: string   $id          Importer tag. Used to uniquely identify importer.
param: string   $name        Importer name and title.
param: string   $description Importer description.
param: callable $callback    Callback to run.

wp_import_cleanup( $id )   X-Ref
Cleanup importer.

Removes attachment based on ID.

since: 2.0.0
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
since: 2.0.0

wp_get_popular_importers()   X-Ref
Returns a list from WordPress.org of popular importer plugins.

return: array Importers with metadata for each.
since: 3.5.0

Generated: Sun Jun 26 01:00:03 2022 Cross-referenced by PHPXref 0.7.1