additional_capabilities_display WordPress Filter Hook
The additional_capabilities_display hook is used to add extra capabilities to a user role. This is useful for adding custom functionality to a site. For example, if you wanted to add a custom post type to a site, you would need to add the capability to the user role. The additional_capabilities_display hook allows you to do this.
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.
Parameters
Source
File: wp-admin/user-edit.php
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |