apply_filters( 'additional_capabilities_display', bool $enable, WP_User $profile_user )

Filters whether to display additional capabilities for the user.


Description

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


Top ↑

Parameters

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

Top ↑

Source

File: wp-admin/user-edit.php. View all references

$display_additional_caps = apply_filters( 'additional_capabilities_display', true, $profile_user );

Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

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