Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55942, comment 61


Ignore:
Timestamp:
05/01/2023 11:11:13 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55942, comment 61

    initial v1  
    1717    - `get_option( 'my_option' );` will return string `'some text'`. This is the current behavior.
    1818    - `get_option( 'my_option', false, 'bool' );` will return boolean `true`.
    19     - `get_option( 'my_option', false, 'int' );` will return integer `1`.
     19    - `get_option( 'my_option', false, 'int' );` will return integer `0`.
    2020
    2121In practice using `$value_type` would make it possible to do something like: