函数文档

get_importers()

💡 云策文档标注

概述

get_importers() 函数用于检索 WordPress 导入器列表,返回一个数组。该函数在内部对导入器数组进行排序。

关键要点

  • 函数返回全局变量 $wp_importers 的数组,表示导入器列表。
  • 如果 $wp_importers 是数组,会使用 uasort() 和 _usort_by_first_member 函数进行排序。
  • 此函数自 WordPress 2.0.0 版本引入。

📄 原文内容

Retrieves the list of importers.

Return

array

Source

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

Changelog

Version Description
2.0.0 Introduced.