When the time comes that one wants to create a settings page, one stumbles upon two semantically similar WP functions called:
I read the docs and am confused about those. Do I need both if I want to create a Settings Page in the WP Admin > Settings area?
The first one says:
"Registers a setting and its data."
But register it for what? It uses
$option_group which does not appear anywhere in the database, but seems to be used to create a nonce for a group of settings under the same hood, as I understand from this WPSE question.
It seems logic to think that it's enough to use
"Add a new field to a section of a settings page."
But then again, what's the purpose of previously using
Did I try something?
Yes, I followed multiple examples using online references, but am still confused about what each function really does.