Advertisements

register_importer

Definition:
function register_importer( $id, $name, $description, $callback ) {}

Register importer for WordPress.

Parameters

  • string $id: Importer tag. Used to uniquely identify importer.
  • string $name: Importer name and title.
  • string $description: Importer description.
  • callback $callback: Callback to run.

Return values

returns:Returns WP_Error when $callback is WP_Error.

Source code

function register_importer( $id, $name, $description, $callback ) {

	global $wp_importers;

	if ( is_wp_error( $callback ) )

		return $callback;

	$wp_importers[$id] = array ( $name, $description, $callback );

}

2665

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: