get_registered_settings

Retrieves an array of registered settings.

Description

(array) get_registered_settings(); 

Returns (array)

List of registered settings, keyed by option name.


Usage

  1. if ( !function_exists( 'get_registered_settings' ) ) { 
  2. require_once ABSPATH . WPINC . '/option.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_registered_settings(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/option.php  
  1. function get_registered_settings() { 
  2. global $wp_registered_settings; 
  3.  
  4. if ( ! is_array( $wp_registered_settings ) ) { 
  5. return array(); 
  6.  
  7. return $wp_registered_settings;