‘delete_option()’ only deleting the value, not the key/value pair
The problem here was caused because I was using a sanitize callback declared in register_settings() (the on_save_chages() function below). This callback will ultimatly update the database with whatever value is returned, creating the fgw_login key if it does not exist. To ensure that I always had my default empty array if required I made the … Read more