get_settings

Get value based on option.

Description

(string) get_settings( (string) $option ); 

Returns (string)

Parameters (1)

0. $option (string)
The option.

Usage

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

Defined (1)

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

/wp-includes/deprecated.php  
  1. function get_settings($option) { 
  2. _deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' ); 
  3.  
  4. return get_option($option);