479 reputation
424
bio website
location
age
visits member for 3 years, 4 months
seen Jul 15 at 10:09

Jul
20
awarded  Self-Learner
Dec
9
awarded  Popular Question
Dec
2
awarded  Notable Question
Oct
8
awarded  Popular Question
Jul
2
awarded  Curious
May
5
awarded  Popular Question
Apr
27
awarded  Popular Question
Apr
21
awarded  Popular Question
Apr
19
awarded  Popular Question
Mar
24
awarded  Yearling
Dec
30
revised update_option() updating the option with an empty value?
added 35 characters in body
Dec
30
revised update_option() updating the option with an empty value?
added 131 characters in body
Dec
30
comment update_option() updating the option with an empty value?
@sven I just tested update_option() manually from the page and it's also showing null and what I found is, this is only happening inside the display function of add_menu_page(), I don't know why it's not working inside of it.
Dec
30
comment update_option() updating the option with an empty value?
@sven yes, I have another class which adds a hook to admin_init to add the default value if this option doesn't exist or empty, and it's working fine.
Dec
30
comment update_option() updating the option with an empty value?
@sven I didn't know about that, I just tried it and dumped the first parameter $new_value and it's showing null, I also tried it with a hard coded string.
Dec
30
asked update_option() updating the option with an empty value?
Nov
23
awarded  Popular Question
Sep
28
awarded  Popular Question
Jul
29
awarded  Popular Question
May
13
awarded  Popular Question