Error Warning During Stripe Purchase
-
Hi there,
I am in the process of switching to Stripe Integration and using subscriptions for the first time and I am getting a warning message in regards to my s2 hacks file. The line it is talking about is in there because with regular registrations (not subscriptions) I want the EOT date sent to Mail Chimp. I would assume this is happening because there is no EOT date with subscriptions? Thoughts on how to fix?
This is the error message I get (it’s just at the top of the screen but registration seems to work properly).
Warning: date() expects parameter 2 to be long, string given in /home/********/public_html/wp-content/mu-plugins/s2-hacks.php on line 8
And this is my s2 hacks file…
<?php add_filter('ws_plugin__s2member_mailchimp_merge_array', 'my_filter', 10, 2); function my_filter($merge, $vars) { // $merge: Array of existing MERGE fields that s2Member passes by default. // $vars: Array of defined variables in the scope/context of this Filter. $custom_merge = array( 'eot_date' => date('m/d/Y',get_user_option('s2member_auto_eot_time', $vars['user_id'])) ); return array_merge($merge, $custom_merge); } /* Forces the default role of a new user to be set to "s2member Level 1" instead of "Subscriber" */ add_filter("ws_plugin__s2member_force_default_role", "default_role",10,1); function default_role($role) { $return = 's2member_level1'; return $return; }
- The topic ‘Error Warning During Stripe Purchase’ is closed to new replies.