WordPress.org

Make WordPress Core

Changeset 49600


Ignore:
Timestamp:
11/14/2020 05:00:31 PM (5 months ago)
Author:
johnbillion
Message:

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

Props ReneHermi, johannadevos

See #51278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r48590 r49600  
    2626 * @param string $option  Name of the option to retrieve. Expected to not be SQL-escaped.
    2727 * @param mixed  $default Optional. Default value to return if the option does not exist.
    28  * @return mixed Value set for the option.
     28 * @return mixed Value set for the option. A value of any type may be returned, including
     29 *               array, boolean, float, integer, null, object, and string.
    2930 */
    3031function get_option( $option, $default = false ) {
Note: See TracChangeset for help on using the changeset viewer.