acf/settings/enable_options_pages_ui
目录
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' );