WordPress filter hook · part of WordPress core
additional_capabilities_display
A WordPress core filter that 2 plugins also fire themselves, running on 220+ sites between them.
“Filters whether to display additional capabilities for the user.”
How to use additional_capabilities_display
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'additional_capabilities_display', function( $value, $user ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from WP User Profiles's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
2 plugins that fire additional_capabilities_display
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WP User Profiles200+ installs
apply_filters( 'additional_capabilities_display', true, $user )wp-user-profiles/includes/metaboxes/permissions-capabilities.php:27 -
Loginer20+ installs
apply_filters( 'additional_capabilities_display', true, $profileuser )public/partials/user-account-form.php:185
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.