Filter hook 'additional_capabilities_display'

in WP Core File wp-admin/user-edit.php at line 902

Description

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.

Occurrences

Filename Line Number
wp-admin/user-edit.php 902

Parameters

Type Name Description
bool $enable Whether to display the capabilities. Default true.
WP_User $profile_user The current WP_User object.

PHP Doc

/**
					 * 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.
					 *
					 * @since 2.8.0
					 *
					 * @param bool    $enable      Whether to display the capabilities. Default true.
					 * @param WP_User $profile_user The current WP_User object.
					 */