Summery Summery
Register importer for WordPress.
Syntax Syntax
Parameters Parameters
- $id
-
(Required) Importer tag. Used to uniquely identify importer.
- $name
-
(Required) Importer name and title.
- $description
-
(Required) Importer description.
- $callback
-
(Required) Callback to run.
Return Return
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 ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |