Just ran more tests. TotalPoll (which has a very similar hook to yours) works fine. ASQ is still not working. Here is the code for both as they appear in the plugin:
Code: |
add_action('totalpoll/actions/poll/vote', function ($poll) {
$source = "TotalPoll";
$email = $poll["email"];
write_log('Caught TotalPoll email hook for ' . $email);
if ( $email ) {
do_save_user ( $source, $email, '', '' );
}
});
add_action('asq_session_user_data', function ($user_data) {
$source = "Quiz";
$email = $user_data['email'];
write_log('Caught ASQ email hook for ' . $email);
if ( $email ) {
do_save_user ( $source, $email, '', '' );
}
});
|