449 reputation
322
bio website
location
age
visits member for 2 years, 7 months
seen Oct 19 at 5:38

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
Mar
24
awarded  Yearling
Feb
11
awarded  Notable Question
Feb
9
comment How to add a class to ul tags created by the WordPress editor Tinymce?
Thank you nice idea.