WordPress at a glance
function is not described

register_importer() WP 2.0.0

Register importer for WordPress.

  • Global. Array. $wp_importers

No Hooks.


WP_Error. Returns WP_Error when $callback is WP_Error.


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 WP 5.2.2

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