wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



register_importer › WordPress Function

Desde2.0.0
Obsoleton/a
register_importer ( $id, $name, $description, $callback )
Parâmetros: (4)
  • (string) $id Importer tag. Used to uniquely identify importer.
    Required: Yes
  • (string) $name Importer name and title.
    Required: Yes
  • (string) $description Importer description.
    Required: Yes
  • (callable) $callback Callback to run.
    Required: Yes
Retorna:
  • (void|WP_Error) Void on success. WP_Error when $callback is WP_Error.
Definido em:
Codex:

Registers importer for WordPress.



Fonte

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