Title: get_settings
Published: April 25, 2014
Last modified: April 28, 2025

---

# get_settings( string $option ): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#wp--skip-link--target)

This function has been deprecated since 2.1.0. Use [get_option()](https://developer.wordpress.org/reference/functions/get_option/)
instead.

Get value based on option.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#see-also)󠁿

 * [get_option()](https://developer.wordpress.org/reference/functions/get_option/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#parameters)󠁿

 `$option`stringrequired

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#return)󠁿

 string

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#source)󠁿

    ```php
    function get_settings($option) {
    	_deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' );

    	return get_option($option);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/deprecated.php#L849)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/deprecated.php#L849-L853)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  | 
| [get_option()](https://developer.wordpress.org/reference/functions/get_option/)`wp-includes/option.php` |

Retrieves an option value based on an option name.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_settings/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Deprecated. Use [get_option()](https://developer.wordpress.org/reference/functions/get_option/)  | 
| [0.71](https://developer.wordpress.org/reference/since/0.71/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_settings%2F)
before being able to contribute a note or feedback.