Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: deleted_user

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
444      $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d", $id) );
445      $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->users WHERE ID = %d", $id) );
446
447      wp_cache_delete($id, 'users');
448      wp_cache_delete($user->user_login, 'userlogins');
449      wp_cache_delete($user->user_email, 'useremail');
450      wp_cache_delete($user->user_nicename, 'userslugs');
451
452      // allow for commit transaction
453      do_action('deleted_user', $id);
454
455      return true;
456 }
457
458 /**
459  * Remove all capabilities from user.
460  *
461  * @since unknown
462  *