This topic contains 1 reply, has 2 voices. Last updated by Raam Dev 4 years, 2 months ago.
Topic Author | Topic |
---|---|
Posted: Monday Oct 22nd, 2012 at 10:00 am #29262 | |
Hi, I want to know weather your s2member hooks can help me solve my issue or not. Below is my requirement. I want to sale for example say ebook. and I want to run some custom function in my plugin when user buy this ebook (or page access). So I think the paypal action hook will help me. I have tried some hooks like add_action(“ws_plugin__s2member_after_paypal_return”, “my_function”); (of course in must used plugin direction with s2-hacks.php file name) but could not make it working. Can you please suggest me some good filter /action hooks so that i can run my own function when user successfully pays for ebook (even if the user is not redirected back to site from paypal and payment notification is received through IPN ?). One more question, how these hooks work ? I mean on front end or on backend with IPN response ? I am just asking as I am testing hooks by printing out something but nothing is being printed on frontend page. Looking forward for your earliest response. Thanks in advanced.
|