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.

How to get ccaps with PHP in Welcome Email?

Home Forums Community Forum How to get ccaps with PHP in Welcome Email?

Tagged: , ,

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

Topic Author Topic
Posted: Wednesday Oct 23rd, 2013 at 6:16 pm #60559
Don Brown
Username: donb

Greetings. I’m attempting to do some custom PHP inside the welcome mail based on CCAPS content, but can’t seem to retrieve the variable. I’ve tried:

$CCAPS
$ccaps

and even declaring a variable with the codes…

$ccaps = "%%ccaps%%";

But none seem to work. Anyone know how to retrieve this particular variable?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Oct 23rd, 2013 at 9:57 pm #60568

Hi Don.

From [hilite path]WP Admin -> s2Member -> General Options -> Email Conf -> New User[/hilite]

PHP Code: It is also possible to use PHP tags — optional (for developers). If you use PHP tags, please run a test email with [hilite code][/hilite]. This will give you a full list of all PHP variables available to you in this email. The $user variable is the most important one. It’s an instance of the WP_User class (e.g. $user->ID, $user->has_cap(), etc). Please note that all Replacement Codes will be parsed first, and then any PHP tags that you’ve included. Also, please remember that emails are sent in plain text format.

Did you try that?

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.