acf_set_options_page_capability()


目录

Description

This function has been deprecated. Please use the acf/options_page/settings filter instead.

Modifies the default Options Page capability setting.

The term ‘capability’ refers to the user roles and permissions that grant access to the Options Page. You can learn more about capability settings here.

Requirements

Parameters

acf_set_options_page_capability( $capability );

Example

This example demonstrates how to change the default Options Page capability to ‘manage_options’.

functions.php

if( function_exists('acf_set_options_page_capability') ) {
    acf_set_options_page_capability('manage_options');
}

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