wphooks.info - additional_capabilities_display

additional_capabilities_display

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/user-edit.php:
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
		 * The 'Additional Capabilities' section will only be enabled if
		 * the number of the user's capabilities exceeds their number of
		 * roles.
		 *
		 * @since 2.8.0
		 *
		 * @param bool    $enable      Whether to display the capabilities. Default true.
		 * @param WP_User $profileuser The current WP_User object.
		 */
		if ( count( $profileuser->caps ) > count( $profileuser->roles )
		&& apply_filters( 'additional_capabilities_display', true, $profileuser )
		) :
			?>
	<h2><?php _e( 'Additional Capabilities' ); ?></h2>
<table class="form-table">
<tr class="user-capabilities-wrap">
	<th scope="row"><?php _e( 'Capabilities' ); ?></th>
	<td>
			<?php
			$output = '';