get_registered_settings() WordPress Function

The get_registered_settings() function is used to retrieve all registered settings for a given Wordpress settings page. This function can be useful for debugging purposes, or for displaying all available settings for a given page in the Wordpress Admin.

get_registered_settings() #

Retrieves an array of registered settings.


Return

(array) List of registered settings, keyed by option name.


Top ↑

Source

File: wp-includes/option.php

function get_registered_settings() {
	global $wp_registered_settings;

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

	return $wp_registered_settings;
}


Top ↑

Changelog

Changelog
VersionDescription
4.7.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.

Show More