Which location should I use to create a field in an options page?
I’ve tried this, unsuccesfully:
'location' => array (
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'option',
),
),
),
It’s going to look something like
'location' => array (
array (
array (
'param' => 'options_page',
'operator' => '==',
'value' => 'options-page-slug',
),
),
),
You can get information like this by creating a field group with the settings you’d like and then exporting it to PHP to see how those settings need to appear.
Yes! Thank you very much for de code and the trick.