414 reputation
316
bio website
location
age
visits member for 2 years
seen Jan 3 at 12:00

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.
Feb
8
accepted How to add a class to ul tags created by the WordPress editor Tinymce?
Feb
8
comment How to add a class to ul tags created by the WordPress editor Tinymce?
I guess this is the only way to do it.
Feb
8
comment How to add a class to ul tags created by the WordPress editor Tinymce?
Actually I know this, and I searched the Codex too, but I wanted to add the class automatically to the ul tag without applying a style to it.
Feb
8
comment How to add a class to ul tags created by the WordPress editor Tinymce?
While this is a good idea, I also have other elements on the page that will have ul tags (shortcodes...) and my issue is that I'm using ::before pseudo element on the ul tags and I don't want to overwrite this styling every time I use a ul tag.
Feb
8
asked How to add a class to ul tags created by the WordPress editor Tinymce?
Feb
2
awarded  Custodian