equal
deleted
inserted
replaced
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; |