Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

closed as too localized by toscho Dec 17 '12 at 21:47

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
answered here : primothemes.com/forums/viewtopic.php?f=4&t=10126#p21046 –  paul Jun 18 '11 at 11:23

Browse other questions tagged or ask your own question.