Make WordPress Core

Changeset 27342


Ignore:
Timestamp:
03/01/2014 02:59:53 PM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.

Props leewillis77.
Fixes #26203.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r27301 r27342  
    218218                endif;
    219219
     220                /**
     221                 * Fires just before the closing div containing the buik role-change controls
     222                 * in the Users list table.
     223                 *
     224                 * @since 3.5.0
     225                 */
    220226                do_action( 'restrict_manage_users' );
    221227                echo '</div>';
     
    364370                        if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) )
    365371                                $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
     372
     373                        /**
     374                         * Filter user row actions for a single row in the Users list table.
     375                         *
     376                         * @since 2.8.0
     377                         *
     378                         * @param array   $actions     Array of row actions actions.
     379                         * @param WP_User $user_object WP_User object for the currently-listed user.
     380                         */
    366381                        $actions = apply_filters( 'user_row_actions', $actions, $user_object );
    367382                        $edit .= $this->row_actions( $actions );
     
    420435                                default:
    421436                                        $r .= "<td $attributes>";
     437
     438                                        /**
     439                                         * Filter display output of custom columns in the Users list table.
     440                                         *
     441                                         * @since 2.8.0
     442                                         *
     443                                         * @param string $output Custom column output. Default empty.
     444                                         * @param string $column_name Column name.
     445                                         * @param int    $user_id     ID of the currently-listed user.
     446                                         */
    422447                                        $r .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object->ID );
    423448                                        $r .= "</td>";
Note: See TracChangeset for help on using the changeset viewer.