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.

wp_mail, EoT events

Home Forums Community Forum wp_mail, EoT events

This topic contains 2 replies, has 2 voices. Last updated by  Manuela Torgler 3 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jun 26th, 2013 at 9:02 am #52606

Hello,

Having already read Setting up EoT notifications we are wanting to expand on the following code:

user_firstname.' '.$user->last_name.'" user_email.'>';
		$message = 'Uh-oh! You ran out of time! You were demoted from '.$existing_role.' to '.$demotion_role.'.';
		wp_mail($to, $subject, $message, $headers);
	}

Namely we want to include the additional values in the email including ccaps, role and the EoT value.

In the case of EoT, we tried get_user_field (“s2member_auto_eot_time”) and get_user_option (“s2member_auto_eot_time”) as described in http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field().

Is it the case that the EoT field is destroyed before we harvest it? Or is it the case that this coffee isn’t working?!?

Thank you

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Jun 27th, 2013 at 3:14 am #52651
Bruce
Username: Bruce
Staff Member

Is it the case that the EoT field is destroyed before we harvest it? Or is it the case that this coffee isn’t working?!?

At this point the EOT date is already deleted. If you want to catch it before then you might try this hook instead:

ws_plugin__s2member_during_auto_eot_system_during_before_demote

You can find all of the hooks for the EOT process here:

/s2member/includes/classes/auto-eots.inc.php
Posted: Thursday Jun 27th, 2013 at 10:12 am #52682

Thanks for the prompt reply Bruce.

Viewing 2 replies - 1 through 2 (of 2 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.