apply_filters( “option_page_capability_{$option_page}”, string $capability )

Filters the capability required when using the Settings API.

Description

By default, the options groups for all registered settings require the manage_options capability.
This filter is required to change the capability required for a certain options page.

Parameters

$capabilitystring
The capability used for the page, which is manage_options by default.

Source

$capability = apply_filters( "option_page_capability_{$option_page}", $capability );

Changelog

VersionDescription
3.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.