I'm using s2member plugin to restrict downloads. it has several hooks that can be used to customize the functionality. here are the hooks documentation : http://www.primothemes.com/forums/viewtopic.php?f=40&t=9134&src_doc_v=110605
this works :
add_action('ws_plugin__s2member_before_file_download_access','wpc_notify_file_download');
function wpc_notify_file_download(){
wp_mail('test@example.com','test','test');
wp_redirect( '/thank-you/' ); exit;
}
but if I use the after download access hook, it doesn't work, the hook doesn't seem to fire.
also, if a non member tries to download, they are redirected to a register page, I'd like the download to start automatically once they register and log in.