Make WordPress Core


Ignore:
Timestamp:
04/08/2009 07:01:10 PM (16 years ago)
Author:
ryan
Message:

Add deleted_user action. Props Denis-de-Bernardy. see #9422

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r10851 r10894  
    412412
    413413    $id = (int) $id;
     414   
     415    // allow for transaction statement
     416    do_action('delete_user', $id);
    414417
    415418    if ($reassign == 'novalue') {
     
    430433
    431434    // FINALLY, delete user
    432     do_action('delete_user', $id);
    433435
    434436    $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d", $id) );
     
    440442    wp_cache_delete($user->user_login, 'userlogins');
    441443    wp_cache_delete($user->user_email, 'useremail');
     444   
     445    // allow for commit transaction
     446    do_action('deleted_user', $id);
    442447
    443448    return true;
Note: See TracChangeset for help on using the changeset viewer.