ms_user_list_site_actions filter-hookWP 3.1.0

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


add_filter( 'ms_user_list_site_actions', 'wp_kama_ms_user_list_site_actions_filter', 10, 2 );

 * Function for `ms_user_list_site_actions` filter-hook.
 * @param string[] $actions     An array of action links to be displayed.
 * @param int      $userblog_id The site ID.
 * @return string[]
function wp_kama_ms_user_list_site_actions_filter( $actions, $userblog_id ){

	// filter...
	return $actions;
An array of action links to be displayed.
Default: 'Edit', 'View'
The site ID.


Since 3.1.0 Introduced.

Where the hook is called

wp-admin/includes/class-wp-ms-users-list-table.php 433
$actions = apply_filters( 'ms_user_list_site_actions', $actions, $site->userblog_id );

Where the hook is used in WordPress

Usage not found.