options-pages
Requires Advanced Custom Fields (ACF) Pro
Define your options pages in a simple string array.
Usage
Key | Type | Required | Default |
---|---|---|---|
"options-pages" | array | No | [] |
Each string in the array will be used to create a new options page in that name, with that string also as the slug & menu title.
To register an options page under a custom post type, see the custom-post-types
page.
Example
config.php
return [ "options-pages" => [ "general-options", "theme-options" ],]