user_row_actions WordPress Action Hook

The user_row_actions hook allows you to add new actions to a user row in the WordPress admin area. This can be useful if you want to add a custom action for your plugin or theme.

apply_filters( 'user_row_actions', string[] $actions, WP_User $user_object ) #

Filters the action links displayed under each user in the Users list table.


Parameters

$actions

(string[])An array of action links to be displayed. Default 'Edit', 'Delete' for single site, and 'Edit', 'Remove' for Multisite.

$user_object

(WP_User)WP_User object for the currently listed user.


Top ↑

Source

File: wp-admin/includes/class-wp-users-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.