New answers tagged

0

I believe that the best approach to this issue is to create IF-ELSE logic like this one: if(get_option('some_option')){ update_option('some_option', 'value_we_want_to_add'); } else { add_option('some_option', 'value_we_want_to_add'); } Logic: get_option() will return TRUE if that option does exist. In this case we can simply ...



Top 50 recent answers are included