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.

Usage

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;
}
$actions(string[])
An array of action links to be displayed.
Default: 'Edit', 'View'
$userblog_id(int)
The site ID.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.