wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



register_importer › WordPress Function

Depuis2.0.0
Dépréciéen/a
register_importer ( $id, $name, $description, $callback )
Paramètres: (4)
  • (string) $id Importer tag. Used to uniquely identify importer.
    Requis: Oui
  • (string) $name Importer name and title.
    Requis: Oui
  • (string) $description Importer description.
    Requis: Oui
  • (callable) $callback Callback to run.
    Requis: Oui
Retourne:
  • (void|WP_Error) Void on success. WP_Error when $callback is WP_Error.
Défini(e) dans:
Codex:

Registers importer for WordPress.



Source

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