wp_delete_signup_on_user_delete

The timeline below displays how wordpress function wp_delete_signup_on_user_delete has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Deletes an associated signup entry when a user is deleted from the database.
 *
 * @since 5.5.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param int      $id       ID of the user to delete.
 * @param int|null $reassign ID of the user to reassign posts and links to.
 * @param WP_User  $user     User object.
 */
function wp_delete_signup_on_user_delete($id, $reassign, $user)
{
    global $wpdb;
    $wpdb->delete($wpdb->signups, array('user_login' => $user->user_login));
}

WordPress Version: 6.1

/**
 * Deletes an associated signup entry when a user is deleted from the database.
 *
 * @since 5.5.0
 *
 * @param int      $id       ID of the user to delete.
 * @param int|null $reassign ID of the user to reassign posts and links to.
 * @param WP_User  $user     User object.
 */
function wp_delete_signup_on_user_delete($id, $reassign, $user)
{
    global $wpdb;
    $wpdb->delete($wpdb->signups, array('user_login' => $user->user_login));
}

WordPress Version: 5.5

/**
 * Deletes am associated signup entry when a user is deleted from the database.
 *
 * @since 5.5.0
 *
 * @param int      $id       ID of the user to delete.
 * @param int|null $reassign ID of the user to reassign posts and links to.
 * @param WP_User  $user     User object.
 */
function wp_delete_signup_on_user_delete($id, $reassign, $user)
{
    global $wpdb;
    $wpdb->delete($wpdb->signups, array('user_login' => $user->user_login));
}