I made a widget, that consists of 2 files. Both php. The main file gets registered as a widget and it works fine. The second file works in the background and I need to access some wordpress functions. Mainly update_option. How do I either register the second file, or include files to access wordpress functions on the second file.
I guess another way to say it, how do you access wordpress functions without activating or registering a php file?