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
- Options Page Add-on version 1.1.0 or later.
Parameters
acf_set_options_page_capability( $capability );
$capability
(string) (Required) The capability for the default Options Page. Defaults to ‘edit_posts’.
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');
}
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.