Filter hook 'ms_user_row_actions'

in WP Core File wp-admin/includes/class-wp-ms-users-list-table.php at line 563

View Source

ms_user_row_actions

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

Hook Information

File Location wp-admin/includes/class-wp-ms-users-list-table.php View on GitHub
Hook Type Filter
Line Number 563

Hook Parameters

Type Name Description
string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'.
WP_User $user WP_User object.

Usage Examples

Basic Usage
<?php
// Hook into ms_user_row_actions
add_filter('ms_user_row_actions', 'my_custom_filter', 10, 2);

function my_custom_filter($actions, $user) {
    // Your custom filtering logic here
    return $actions;
}

Source Code Context

wp-admin/includes/class-wp-ms-users-list-table.php:563 - How this hook is used in WordPress core
<?php
 558  		 * @since 3.2.0
 559  		 *
 560  		 * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'.
 561  		 * @param WP_User  $user    WP_User object.
 562  		 */
 563  		$actions = apply_filters( 'ms_user_row_actions', $actions, $user );
 564  
 565  		return $this->row_actions( $actions );
 566  	}
 567  }

PHP Documentation

<?php
/**
		 * Filters the action links displayed under each user in the Network Admin Users list table.
		 *
		 * @since 3.2.0
		 *
		 * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'.
		 * @param WP_User  $user    WP_User object.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/class-wp-ms-users-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.