ms_user_list_site_actions WordPress Action Hook

The ms_user_list_site_actions hook is used to add new items to the list of site-level actions displayed on the WordPress User List page. This hook is useful for customizing the list of actions displayed for each user on the User List page, or for adding new actions that can be performed on multiple sites at once.

apply_filters( 'ms_user_list_site_actions', string[] $actions, int $userblog_id ) #

Filters the action links displayed next the sites a user belongs to in the Network Admin Users list table.


Parameters

$actions

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

$userblog_id

(int)The site ID.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

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