Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: additional_capabilities_display

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
855                           * The 'Additional Capabilities' section will only be enabled if
856                           * the number of the user's capabilities exceeds their number of
857                           * roles.
858                           *
859                           * @since 2.8.0
860                           *
861                           * @param bool    $enable      Whether to display the capabilities. Default true.
862                           * @param WP_User $profile_user The current WP_User object.
863                           */
864                          $display_additional_caps = apply_filters( 'additional_capabilities_display', true, $profile_user );
865                          ?>
866
867                     <?php if ( count( $profile_user->caps ) > count( $profile_user->roles ) && ( true === $display_additional_caps ) ) : ?>
868                          <h2><?php _e( 'Additional Capabilities' ); ?></h2>
869
870                          <table class="form-table" role="presentation">
871                               <tr class="user-capabilities-wrap">
872                                    <th scope="row"><?php _e( 'Capabilities' ); ?></th>
873                                    <td>