ms_user_row_actions WordPress Action Hook

The ms_user_row_actions hook allows you to add custom actions to a user row in the WordPress admin panel. This can be useful for adding links to user profiles or other custom actions.

apply_filters( 'ms_user_row_actions', string[] $actions, WP_User $user ) #

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


Parameters

$actions

(string[])An array of action links to be displayed. Default 'Edit', 'Delete'.

$user

(WP_User)WP_User object.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.2.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.