[Solved] update_option doesn’t work in single php file
[ad_1] As pointed out in the comments your file is outside wordpress environment, so it doesn’t recognize the update_option function. Even knowing the ajax api was mentioned in the comments, I’m putting here what you should do: Require the activate.php file in the main plugin file if you aren’t doing this yet. Something simple like … Read more