how to compare update_option() after it saves to database?
Looking at the full code in the updated question, it seems that you’re just checking if the option has been changed; so for that purpose, you could simply do so, where <option name> is the option name like my_option: add_action( ‘update_option_<option name>’, function(){ // you shouldn’t echo, but this is just for testing echo ‘option … Read more