wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



register_importer › WordPress Function

Da2.0.0
Deprecaton/a
register_importer ( $id, $name, $description, $callback )
Parametri: (4)
  • (string) $id Importer tag. Used to uniquely identify importer.
    Richiesto:
  • (string) $name Importer name and title.
    Richiesto:
  • (string) $description Importer description.
    Richiesto:
  • (callable) $callback Callback to run.
    Richiesto:
Ritorna:
  • (void|WP_Error) Void on success. WP_Error when $callback is WP_Error.
Definito a:
Codex:

Registers importer for WordPress.



Sorgenti

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