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.

modify user field after success paypal

Home Forums Community Forum modify user field after success paypal

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 4 months ago.

Topic Author Topic
Posted: Tuesday Aug 21st, 2012 at 3:57 am #22608

Hi there.

I have created this hook – appended to my s2-hacks.php file

<?php
add_action('ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars', 'expiration_date');
function expiration_date($vars = array()) {
	//do any processing if you want...
	$user_id = $vars['user_id'];
	$expire_on = strtotime('04/04/2013');
	update_user_option ($user_id, "s2member_auto_eot_time", $expire_on);
}
?>

As a test, which I found on another post, but it doesnt seem to update the newly created user’s EOT after paypal returns with success.

As I new to hooks, maybe I am not understanding correctly?

If anyone can help.

Best

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Aug 22nd, 2012 at 5:49 am #22695

Hi Andy.

In the hack’s function, could you do echo the user’s ID and the time? I’d like to know if you have a correct value for both.

[hilite pre_code]
' . strtotime('04/04/2013');
exit;
}
?>
[/hilite]

Thanks.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.