get_importers() WordPress Function

The get_importers() function is used to list all available importers for a particular site. This function is useful for plugin and theme developers who need to list all available importers for a particular site.

get_importers() #

Retrieve list of importers.


Return

(array)


Top ↑

Source

File: wp-admin/includes/import.php

function get_importers() {
	global $wp_importers;
	if ( is_array( $wp_importers ) ) {
		uasort( $wp_importers, '_usort_by_first_member' );
	}
	return $wp_importers;
}

Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.