latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Avi Miller

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


Topics I've Started


My Latest Replies (From Various Topics)

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday May 22nd, 2012 at 3:35 am #14170

Raam –

I actually did this by hooking into the ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts action to modify the attributes of the shortcode prior to it being displayed. This way, I don’t need a PHP Execution plugin, which makes me feel better from a security perspective. :)

Essentially, the system calculates the number of days between time(), i.e. now, and the 30 June and then sets that as the rp (period) in days for the Buy Now, non-recurring, non-trial subscription.

Thanks for the pointers!

Posted: Wednesday May 16th, 2012 at 6:52 pm #13703

Raam,

Are you able to point me towards the hook/filter that is most appropriate or called before the shortcode to generate the button is called? I’ve been looking through the Codex, but without doing a proper review of all the hooks/filters, it’ll take me a while to find the right one. I might as well ask here, in case you’ve done something similar in the past. :)

Cheers,
Avi

Viewing 2 replies - 1 through 2 (of 2 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.