register_importer( string $id, string $name, string $description, callable $callback )

Register importer for WordPress.

Parameters Parameters


(string) (Required) Importer tag. Used to uniquely identify importer.


(string) (Required) Importer name and title.


(string) (Required) Importer description.


(callable) (Required) Callback to run.

Top ↑

Return Return

(void|WP_Error) Void on success. WP_Error when $callback is WP_Error.

Top ↑

Source Source

File: wp-admin/includes/import.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 );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.