I would need some guidance, since I have not managed to find something to help me with the next problem.
I am developing a plugin in WordPress, in which I would need the user from the admin and with a settings page you can configure your google account to use these services as the calendar. What I really need is to be able to implement the happy Google oAuth 2 but from the settings page of the plugin itself. This I do so that the web administrator can show available hours to show them on the front of the end user. I have tried with the api key but for certain services it asks me for auth and I can not see how to do it.
What I could try is to log in when saving changes to the settings, but how do I control the event that occurs when the settings are being recorded?
Thanks in advance, Greetings.