From 34cdf7f7e1202872674d0f22278ad5c177f7f467 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 1 Mar 2014 14:59:53 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php. Props leewillis77. Fixes #26203. git-svn-id: https://develop.svn.wordpress.org/trunk@27342 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-users-list-table.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php index 4074239774..6e9a273542 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -217,6 +217,12 @@ class WP_Users_List_Table extends WP_List_Table { submit_button( __( 'Change' ), 'button', 'changeit', false ); endif; + /** + * Fires just before the closing div containing the buik role-change controls + * in the Users list table. + * + * @since 3.5.0 + */ do_action( 'restrict_manage_users' ); echo ''; } @@ -363,6 +369,15 @@ class WP_Users_List_Table extends WP_List_Table { $actions['delete'] = "" . __( 'Delete' ) . ""; if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) ) $actions['remove'] = "" . __( 'Remove' ) . ""; + + /** + * Filter user row actions for a single row in the Users list table. + * + * @since 2.8.0 + * + * @param array $actions Array of row actions actions. + * @param WP_User $user_object WP_User object for the currently-listed user. + */ $actions = apply_filters( 'user_row_actions', $actions, $user_object ); $edit .= $this->row_actions( $actions ); @@ -419,6 +434,16 @@ class WP_Users_List_Table extends WP_List_Table { break; default: $r .= ""; + + /** + * Filter display output of custom columns in the Users list table. + * + * @since 2.8.0 + * + * @param string $output Custom column output. Default empty. + * @param string $column_name Column name. + * @param int $user_id ID of the currently-listed user. + */ $r .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object->ID ); $r .= ""; }