Un motore di ricerca WordPress per sviluppatori e autori di temi



register_importer ›

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:
  • (WP_Error) Returns WP_Error when $callback is WP_Error.
Definito a:
Codex:

Register 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 );
}