WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
417 | * Filters the action links displayed under each user in the Users list table. |
418 | * |
419 | * @since 2.8.0 |
420 | * |
421 | * @param array $actions An array of action links to be displayed. |
422 | * Default 'Edit', 'Delete' for single site, and |
423 | * 'Edit', 'Remove' for Multisite. |
424 | * @param WP_User $user_object WP_User object for the currently-listed user. |
425 | */ |
426 | $actions = apply_filters( 'user_row_actions', $actions, $user_object ); |
427 |
|
428 | // Role classes. |
429 | $role_classes = esc_attr( implode( ' ', array_keys( $user_roles ) ) ); |
430 |
|
431 | // Set up the checkbox ( because the user is editable, otherwise it's empty ) |
432 | $checkbox = '<label class="screen-reader-text" for="user_' . $user_object->ID . '">' . sprintf( __( 'Select %s' ), $user_object->user_login ) . '</label>' |
433 | . "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='{$role_classes}' value='{$user_object->ID}' />"; |
434 |
|
435 | } else { |