WordPress at Your Fingertips
filter is not described

option_page_capability_(option_page) filter-hook . WP 3.2.0

Filters the capability required when using the Settings API.

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.


add_filter( 'option_page_capability_(option_page)', 'filter_function_name_3666' );
function filter_function_name_3666( $capability ){
	// filter...

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


Since 3.2.0 Introduced.

Where the hook is called

In file: /wp-admin/options.php
wp-admin/options.php 44
$capability = apply_filters( "option_page_capability_{$option_page}", $capability );

Where in WP core the hook is used WordPress

Usage not found.