I am trying to implement some codein the member_delete hook in EE. But for testing purposes, I just want the hook to trigger but don't go ahead with the actual delete.

Is there a way to do this? In some other form related extension hooks, I only need to set the error variables to be able to cancel submit. I am not sure if the same can be said of member_delete

1 Answer 1


Sure - just make sure you return NULL or an empty array at the end of your method. (The hook expects an array of member_ids to be sent back.)

  • Thanks! This is very useful information when developing future hooks. Commented Jul 23, 2013 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.