acf/settings/enable_options_pages_ui


目录

Description

Used to disable the UI for registering options pages.

Changelog

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' );

版本号 #1
由 壳壳虫 创建于 2026-08-29 15:44:03 UTC
由 壳壳虫 更新于 2026-08-29 15:44:03 UTC