WordPress at a glance
function is not described

register_importer() WP 2.0.0

Register importer for WordPress.

  • Global. Array. $wp_importers

No Hooks.

Return

WP_Error. Returns WP_Error when $callback is WP_Error.

Usage

register_importer( $id, $name, $description, $callback );
$id(string) (required)
Importer tag. Used to uniquely identify importer.
$name(string) (required)
Importer name and title.
$description(string) (required)
Importer description.
$callback(callable) (required)
Callback to run.

Code of register importer: wp-admin/includes/import.php VER 5.1.1

<?php
function register_importer( $id, $name, $description, $callback ) {
	global $wp_importers;
	if ( is_wp_error( $callback ) ) {
		return $callback;
	}
	$wp_importers[ $id ] = array( $name, $description, $callback );
}