add_send_hook. Pass the
same function you added.
Parameters
function
required
The exact function that was added.
Behavior
- Identity matters. It must be the same function value; an equivalent anonymous function will not match. Keep a reference when you add it.
- The send filter is uninstalled once the last send hook is removed.