WordPress at a glance
filter is not described

additional_capabilities_display filter-hook . WP 2.8.0

Filters whether to display additional capabilities for the user.

The 'Additional Capabilities' section will only be enabled if the number of the user's capabilities exceeds their number of roles.

Usage

add_filter( 'additional_capabilities_display', 'filter_function_name_7244', 10, 2 );
function filter_function_name_7244( $enable, $profileuser ){
	// filter...

	return $enable;
}
$enable(true/false)
Whether to display the capabilities.
Default: true
$profileuser(WP_User)
The current WP_User object.

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

В файле: /wp-admin/user-edit.php
additional_capabilities_display
wp-admin/user-edit.php 743
&& apply_filters( 'additional_capabilities_display', true, $profileuser )

Где используется хук в ядре WP

Использование не найдено.