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 |
---|---|
1828 | $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; |
1829 | } else { |
1830 | $edit = "<strong>$user_object->user_login</strong><br />"; |
1831 | } |
1832 |
|
1833 | if ( !is_multisite() && $current_user->ID != $user_object->ID && current_user_can('delete_user', $user_object->ID) ) |
1834 | $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>"; |
1835 | if ( is_multisite() && $current_user->ID != $user_object->ID && current_user_can('remove_user', $user_object->ID) ) |
1836 | $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=remove&user=$user_object->ID", 'bulk-users') . "'>" . __('Remove') . "</a>"; |
1837 | $actions = apply_filters('user_row_actions', $actions, $user_object); |
1838 | $action_count = count($actions); |
1839 | $i = 0; |
1840 | $edit .= '<div class="row-actions">'; |
1841 | foreach ( $actions as $action => $link ) { |
1842 | ++$i; |
1843 | ( $i == $action_count ) ? $sep = '' : $sep = ' | '; |
1844 | $edit .= "<span class='$action'>$link$sep</span>"; |
1845 | } |
1846 | $edit .= '</div>'; |