$args['order'] = $_REQUEST['order'];
/**
- * Filter the query arguments used to retrieve users for the current users list table.
+ * Filters the query arguments used to retrieve users for the current users list table.
*
* @since 4.4.0
*
* with this table.
*
* Provides a list of roles and user count for that role for easy
- * filtering of the user table.
+ * Filtersing of the user table.
*
* @since 3.1.0
* @access protected
* in the Users list table.
*
* @since 3.5.0
+ * @since 4.6.0 The `$which` parameter was added.
+ *
+ * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
*/
- do_action( 'restrict_manage_users' );
+ do_action( 'restrict_manage_users', $which );
echo '</div>';
}
protected function get_sortable_columns() {
$c = array(
'username' => 'login',
- 'name' => 'name',
'email' => 'email',
);
$actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
/**
- * Filter the action links displayed under each user in the Users list table.
+ * Filters the action links displayed under each user in the Users list table.
*
* @since 2.8.0
*
break;
default:
/**
- * Filter the display output of custom columns in the Users list table.
+ * Filters the display output of custom columns in the Users list table.
*
* @since 2.8.0
*
}
/**
- * Filter the returned array of roles for a user.
+ * Filters the returned array of roles for a user.
*
* @since 4.4.0
*