I want to call custom action, after a user is deleting his account. I'm using the premium theme wplms which is using buddypress for this stuff. After the submit button in the delete-account.php there is called the action bp_members_delete_account_after_submit:
//...
<div class="submit">
<input type="submit" disabled="disabled" value="Konto löschen" id="delete-account-button" name="delete-account-button" />
</div>
<?php do_action( 'bp_members_delete_account_after_submit' ); ?>
According to this http://hookr.io/actions/bp_members_delete_account_after_submit/ I implemented the following code in my function.php:
function action_bp_members_delete_account_after_submit( ) {
do_action('myAction', 'arg1', 'arg2');
};
add_action( 'bp_members_delete_account_after_submit', 'action_bp_members_delete_account_after_submit', 10, 0 );
But nothing is happening. It seems like this function will never called? Did I something wrong?