Admin Configuration

Customize WordPress admin functionality and security features.

Admin Configuration Options

The admin section in your config.yml file controls various admin features:

1
admin:
2
xml-rpc: false # Disable XML-RPC
3
unlogged-api: true # Allow API access for unlogged users
4
rss-feeds: false # Disable RSS feeds
5
svg-import: true # Allow SVG uploads
6
svg-dimensions: true # Preserve SVG dimensions
7
admin-bar: true # Show admin bar
8
options-pages: # ACF options pages
9
- page_title: 'Site Options'
10
menu_title: 'Site Options'
11
menu_slug: 'site-options'
12
capability: 'edit_posts'
13
position: null
14
parent_slug: ''
15
icon_url: 'dashicons-admin-generic'
16
redirect: true
17
post_id: 'options'
18
autoload: false

Security Options

xml-rpc

Controls XML-RPC functionality. XML-RPC can be a security risk, so it's recommended to disable it if you don't need it.

1
admin:
2
xml-rpc: false # Disable XML-RPC

unlogged-api

Controls whether unlogged users can access the WordPress REST API. Set to false to restrict API access to logged-in users only.

1
admin:
2
unlogged-api: false # Restrict API access to logged-in users

rss-feeds

Controls whether RSS feeds are enabled. Set to false to disable RSS feeds.

1
admin:
2
rss-feeds: false # Disable RSS feeds

Media Options

svg-import

Controls whether SVG uploads are allowed in the media library. SVG files can contain malicious code, so use with caution.

1
admin:
2
svg-import: true # Allow SVG uploads

svg-dimensions

Controls whether SVG dimensions are preserved when displaying SVG files.

1
admin:
2
svg-dimensions: true # Preserve SVG dimensions

UI Options

admin-bar

Controls whether the WordPress admin bar is shown at the top of the site for logged-in users.

1
admin:
2
admin-bar: true # Show admin bar

ACF Options Pages

The options-pages parameter allows you to create ACF options pages in the WordPress admin:

1
admin:
2
options-pages:
3
- page_title: 'Site Options'
4
menu_title: 'Site Options'
5
menu_slug: 'site-options'
6
capability: 'edit_posts'
7
position: null
8
parent_slug: ''
9
icon_url: 'dashicons-admin-generic'
10
redirect: true
11
post_id: 'options'
12
autoload: false
13
14
- page_title: 'Theme Settings'
15
menu_title: 'Theme Settings'
16
menu_slug: 'theme-settings'
17
capability: 'edit_theme_options'

Each options page can have the following parameters:

  • page_title: Title displayed at the top of the options page
  • menu_title: Title displayed in the admin menu
  • menu_slug: URL slug for the options page
  • capability: WordPress capability required to access the page
  • position: Position in the menu (null for default)
  • parent_slug: Parent menu slug for submenu items
  • icon_url: Dashicon or URL for the menu icon
  • redirect: Whether to redirect to the first child page
  • post_id: Post ID to save/load data from
  • autoload: Whether to autoload the options