acf/settings/enable_options_pages_ui

Last updated Apr 4, 2024

Description

Used to disable the UI for registering options pages.

Changelog

  • Added in version 6.2.

Example

This example demonstrates how to disable the UI for registering options pages. Options pages can still be registered with PHP using the acf_add_options_page() or acf_add_options_sub_page() functions.

functions.php

<?php
add_filter( 'acf/settings/enable_options_pages_ui', '__return_false' );
Supercharge Your Website With Premium Features Using ACF PRO

Speed up your workflow and unlock features to better develop websites using ACF Blocks and Options Pages, with the Flexible Content, Repeater, Clone, Gallery Fields & More.

Explore Features View Pricing

PRO Features
ACF Blocks
Options Pages
PRO Fields
Repeater
Flexible Content
Gallery
Clone

Related