WordPress开发者和主题制作者的搜索引擎



get_registered_settings ›

Since4.7.0
已弃用n/a
get_registered_settings ( 没有参数 )
返回:
  • (array) List of registered settings, keyed by option name.
定义在:
文档:

Retrieves an array of registered settings.



源码

function get_registered_settings() {
	global $wp_registered_settings;

	if ( ! is_array( $wp_registered_settings ) ) {
		return array();
	}

	return $wp_registered_settings;
}