WordPress.org

Ready to get started?Download WordPress

Forums

delete user hook incomplete? (2 posts)

  1. jwsand
    Member
    Posted 3 years ago #

    In the wp_delete_user function (in the core) there is a do_action

    do_action('delete_user', $id);

    When using the delete_user action hook
    add_action('delete_user', 'my_function');

    The only information that is passed to my_function, that I can see, is the user_id of the user that is being deleted, is there a way to also get the reassigned user? For instance, if a user is deleted, there is an option to reassign all their post to another user. Is there a way to grab the $reassign user id and put it into that hook?

  2. jwsand
    Member
    Posted 3 years ago #

    Maybe it would have to be added to the core.

Topic Closed

This topic has been closed to new replies.

About this Topic