wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



additional_capabilities_display › WordPress Filter Hooks

Seit2.8.0
Veraltetn/v
apply_filters( 'additional_capabilities_display', true, $profile_user )
Parameter: (2)
  • (bool) $enable Whether to display the capabilities. Default true.
    Erforderlich: Ja
  • (WP_User) $profile_user The current WP_User object.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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