wpseek.com
A WordPress-centric search engine for devs and theme authors



additional_capabilities_display › WordPress Filter Hooks

Since2.8.0
Deprecatedn/a
apply_filters( 'additional_capabilities_display', true, $profile_user )
Parameters: (2)
  • (bool) $enable Whether to display the capabilities. Default true.
    Required: Yes
  • (WP_User) $profile_user The current WP_User object.
    Required: Yes
Defined at:
Codex:

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.





Source

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