WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15932 closed defect (bug) (fixed)

Missing filter for user actions in ms users list table

Reported by: jshreve Owned by: westi
Milestone: 3.2 Priority: normal
Severity: normal Version: 3.1
Component: Network Admin Keywords: has-patch commit
Focuses: multisite Cc:

Description

Right now the only way to hook into class-wp-ms-users-list-table.php is to use manage_users_custom_column. If you want to add a new link for a user each will need a column.

There is no filter for adding action links under the username on these screens.

This patch adds a filter similar to class-wp-ms-sites-list-table's manage_sites_action_links.

Attachments (2)

manage_users_action_links.diff (930 bytes) - added by jshreve 3 years ago.
Adds a manage_users_action_links filter
15932.diff (763 bytes) - added by sorich87 3 years ago.
Add 'ms_user_row_actions'

Download all attachments as: .zip

Change History (7)

jshreve3 years ago

Adds a manage_users_action_links filter

comment:1 westi3 years ago

  • Component changed from General to Network Admin
  • Keywords 3.2-early added
  • Milestone changed from Awaiting Review to Future Release
  • Version set to 3.1

Looks Great.

@PeteMall - I think we need to do a sweep through and add lots like this in 3.2

comment:2 scribu3 years ago

  • Keywords needs-patch added; has-patch 3.2-early removed
  • Milestone changed from Future Release to 3.2

Closed #17137 as dup.

The filter should be named 'ms_user_row_actions' for consistency with other list tables and the 'ms_user_list_site_actions' present in the same class.

sorich873 years ago

Add 'ms_user_row_actions'

comment:3 sorich873 years ago

  • Keywords has-patch added; needs-patch removed

comment:4 scribu3 years ago

  • Keywords commit added

comment:5 westi3 years ago

  • Owner set to westi
  • Resolution set to fixed
  • Status changed from new to closed

In [18090]:

Add a ms_user_row_actions filter on the actions array for the Network Users table. Fixes #15932 props sorich87

Note: See TracTickets for help on using tickets.