wp/wp-admin/includes/import.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    47  *
    47  *
    48  * @param string   $id          Importer tag. Used to uniquely identify importer.
    48  * @param string   $id          Importer tag. Used to uniquely identify importer.
    49  * @param string   $name        Importer name and title.
    49  * @param string   $name        Importer name and title.
    50  * @param string   $description Importer description.
    50  * @param string   $description Importer description.
    51  * @param callable $callback    Callback to run.
    51  * @param callable $callback    Callback to run.
    52  * @return WP_Error Returns WP_Error when $callback is WP_Error.
    52  * @return void|WP_Error Void on success. WP_Error when $callback is WP_Error.
    53  */
    53  */
    54 function register_importer( $id, $name, $description, $callback ) {
    54 function register_importer( $id, $name, $description, $callback ) {
    55 	global $wp_importers;
    55 	global $wp_importers;
    56 	if ( is_wp_error( $callback ) ) {
    56 	if ( is_wp_error( $callback ) ) {
    57 		return $callback;
    57 		return $callback;