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.
Related
- Filters: acf/settings/enable_post_types
- Filters: acf/json/save_file_name
- Actions: acf/options_page/save
- Filters: acf/field_group/enable_field_browser
- Filters: acf/compatibility