Changes between Initial Version and Version 1 of Ticket #55942, comment 61
- Timestamp:
- 05/01/2023 11:11:13 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #55942, comment 61
initial v1 17 17 - `get_option( 'my_option' );` will return string `'some text'`. This is the current behavior. 18 18 - `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`. 20 20 21 21 In practice using `$value_type` would make it possible to do something like: