apply_filters( ‘user_row_actions’, string[] $actions, WP_User $user_object )

Filters the action links displayed under each user in the Users list table.

Parameters

$actionsstring[]
An array of action links to be displayed.
Default 'Edit', 'Delete' for single site, and 'Edit', 'Remove' for Multisite.
$user_objectWP_User
WP_User object for the currently listed user.

Source

$actions = apply_filters( 'user_row_actions', $actions, $user_object );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    This snippet removes the link to the author archive. Can be used with ms_user_row_actions aswell.

    function myprefix_user_row_actions( $actions  ) {
    	if ( isset( $actions['view'] ) ) {
    		unset( $actions['view'] );
    	}
    	return $actions;
    }
    add_action( 'user_row_actions', 'myprefix_user_row_actions', 10, 1 );

You must log in before being able to contribute a note or feedback.