register_importer() – Register importer for WordPress.

You appear to be a bot. Output may be restricted

Description

Register importer for WordPress.

Usage

$void|WP_Error = register_importer( $id, $name, $description, $callback );

Parameters

$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.

Returns

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

Source

File name: wordpress/wp-admin/includes/import.php
Lines:

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

 View on GitHub View on Trac