Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: delete_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
229      }
230
231      // FINALLY, delete user
232      $wpdb->query("DELETE FROM $wpdb->users WHERE ID = $id");
233      $wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
234
235      wp_cache_delete($id, 'users');
236      wp_cache_delete($user->user_login, 'userlogins');
237
238      do_action('delete_user', $id);
239
240      return true;
241 }
242
243 function get_link($link_id, $output = OBJECT) {
244      global $wpdb;
245      
246      $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$link_id'");
247