WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

BuddyPress has a behavior for removing users that does not run through WP's deleted_user action.

I have a hook in my plugin for add_action('deleted_user', 'myScript'); but it only works for WP-related user deletes. It does not run when I remove a user in BuddyPress.

Has anyone hooked to the BP remove user action in their plugin?

If so, what is the action to catch?


share|improve this question

closed as off-topic by birgire, gmazzap, ialocin, Wyck, toscho Aug 12 '14 at 21:35

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

buddypress users are actually wordpress users, there is no buddypress user separate from a wordpress user. But maybe add_action('delete_user', 'myScript'); might be helpful which runs before the user is deleted. Buddypress itself uses this action, for example: add_action( 'delete_user', 'bp_core_remove_data' );

share|improve this answer