For instance, search s2Member's source code for: ws_plugin__s2member_modification_email_sbj
Where is that? Looking at the article you refered me to, nothing looks like that so maybe it is INSIDE another category?
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
For instance, search s2Member's source code for: ws_plugin__s2member_modification_email_sbj
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
return 'Thank you! Your account has been updated.';
}
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
return 'Thank you user number ' . $vars['user_id'] . '! Your account has been updated.';
}
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
print_r($vars);
}
return "Thank you FIRSTNAME \n\nYou have successfully purchased the " . $vars["item_name"] . "\n\nIf you haven't already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:" . wp_login_url ()\n\n
"If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/%%cv1%% ;
Where you can use a condition is in the product's URL, and instead of %%cv1%% check what the product is in $vars.
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
file_put_contents(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
}
$vars["cv"][1]
<?php
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
file_put_content(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
}
?>
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/creas1/public_html/scrapbookcampus.com/wp-content/mu-plugins/s2-hacks.php:7) in /home/creas1/public_html/scrapbookcampus.com/wp-content/plugins/popup-domination/popup-domination.php on line 25
Please change this to file_put_contents, i.e. plural:cassel wrote:Update:
- Code: Select all
<?php
add_filter('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj($s2member_default_sbj, $vars = array())
{
file_put_content(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
}
?>
Parse error: syntax error, unexpected ';' in /home/creas1/public_html/scrapbookcampus.com/wp-content/mu-plugins/s2-hacks.php on line 5
<?php
add_filter ("ws_plugin__s2member_modification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
{
return 'Thank you for purchasing '. $vars["item_name"] .;
}
add_filter ("ws_plugin__s2member_modification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
{
return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];
}
?>
cassel wrote:
- Code: Select all
<?php
add_filter ("ws_plugin__s2member_modification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
{
return 'Thank you for purchasing '. $vars["item_name"] .;
}
add_filter ("ws_plugin__s2member_modification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
{
return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];
}
?>
return 'Thank you for purchasing '. $vars["item_name"];
return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];
Subject: Congratulations! You officially registered for the Element Creation with PSP
Thanks Robert!
You have successfully purchased the Element Creation with PSP.
If you haven't already done so, the next step is to Register a Username
for the Campus.
Complete your registration here:
http://tinyurl.com/xxxxxxxx
If you have any trouble, please feel free to contact us.
Once your registation is completed, you can login and access your bonuses
here:
http://xxxxxxxxx
Enjoy your stay in the Campus,
Cassel
Scrapbook Campus
<?php
add_filter ('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
{
return 'Thank you for purchasing '. $vars["item_name"];
}
add_filter ('ws_plugin__s2member_modification_email_msg', 'my_s2_modification_msg', 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
{
return "Thank you ". $vars["first_name"] . "\n\nYou have successfully purchased the " . $vars["item_name"] . "\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:" . wp_login_url () . "\n\n
If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/".$vars["cv"][1];
}
?>
Users browsing this forum: No registered users and 2 guests