You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have oneedac option which is an array with keys for all the things we need to store. No need for the many different options we have right now.
Use one option instead of multiple
We should have one
edac
option which is an array with keys for all the things we need to store. No need for the many different options we have right now.Instead of this:
We should be doing:
Ideally, we'd make a single options class which we use for all interactions with our single option. For example, something like this.
No need to
add_option
This code:
can simply be
If the option doesn't exist, it will be created. WP already takes care of these things.
The text was updated successfully, but these errors were encountered: