options-pages

Define your options pages in a simple string array.

Usage

KeyTypeRequiredDefault
"options-pages"arrayNo[]

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"
    ],
]
Registering two custom ACF Pro options pages