Docs: For clarity, add some information about the return types of get_option().

Props ReneHermi, johannadevos

See #51278


git-svn-id: https://develop.svn.wordpress.org/trunk@49600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2020-11-14 17:00:31 +00:00
parent c375590c0e
commit 356f5664a7

View File

@ -25,7 +25,8 @@
*
* @param string $option Name of the option to retrieve. Expected to not be SQL-escaped.
* @param mixed $default Optional. Default value to return if the option does not exist.
* @return mixed Value set for the option.
* @return mixed Value set for the option. A value of any type may be returned, including
* array, boolean, float, integer, null, object, and string.
*/
function get_option( $option, $default = false ) {
global $wpdb;