I'm using your alert.php file to override WP's default email notification message, as a way of integrating with aweber.
So far it's rocked. With a new site, though, I want to use your custom capabilities function to create packages, rather than relying on membership levels.
How can I swap out the level in the code below with ccaps (or some other way of tracking the package the customer bought)?
- Code: Select all
<?php
function wp_new_user_notification () { /* Disables default email with username/password. */}
add_action ("ws_plugin__s2member_during_configure_user_registration", "my_email_function");
function my_email_function ($vars = array ())
{
$email = $vars["email"];
$first_name = $vars["fname"];
$last_name = $vars["lname"];
$full_name = $vars["name"];
$username = $vars["login"];
$password = $vars["pass"];
$level = $vars["level"];
/* Add something here. */
mail ("ric.mazexxxxx@gmail.com,xxxxx@aweber.com",/**/
"New Sub", "username: " . $username . "\npassword: " . $password . "\nName: " . $full_name . "\nemail: " . $email,/**/
"From: xxxx@xxxxxanual.com\r\nContent-Type: text/plain; charset=utf-8", "-f xxxxx@xxxxxxmanual.com");
}
?>
This plugin rocks: It will be great if I can somehow incorporate ccaps, or even the custom variables, from the Pro forms...
Thanks
R