apply_filters( 'ms_user_list_site_actions', string[] $actions, int $userblog_id )
- Since
- 3.1.0
Filters the action links displayed next the sites a user belongs to in the Network Admin Users list table.
Compatibility
- WordPress
- since 3.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$actionsstring[]- An array of action links to be displayed. Default 'Edit', 'View'.
$userblog_idint- The site ID.
Where this hook fires · 1
wp-admin/includes/class-wp-ms-users-list-table.php:438WP_MS_Users_List_Table::column_blogs()
Source code
* * @since 3.1.0 * * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'View'. * @param int $userblog_id The site ID. */ $actions = apply_filters( 'ms_user_list_site_actions', $actions, $site->userblog_id ); $action_count = count( $actions ); $i = 0; foreach ( $actions as $action => $link ) {Changelog
Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.