wordpress add_option is not working

I have wrote a plugin for wordpress and now I want to add more features into it. One of the feature requires options. To store the options I’m trying to use wordpress functions add_option, update_option and get_option. But when I try to add new option the add_option function always returns FALSE. I tried get_option. This function returns FALSE as well. Also I checked the table wp_options in the database. There’s no this option. Also I have tried to use update_option and still get the same result. What I’m doing wrong?

Related posts

1 comment

Comments are closed.