i’m still getting the same message i had setup in the new user email configuration (yes customise new user emails with s2member) in the general options.
here’s my m-plugins s2-hacks.php
add_filter ("ws_plugin__s2member_registration_notification_email_sbj", "my_s2_registeration_sbj", 10, 2);
function my_s2_registeration_sbj ($s2member_default_sbj, $vars = array ())
{
print_r($vars);
file_put_contents(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
return "testing registeration email subject";
}
add_filter ("ws_plugin__s2member_registration_notification_email_msg", "my_s2_registeration_msg", 10, 2);
function my_s2_registeration_msg ($s2member_default_msg, $vars = array ())
{
print_r($vars);
file_put_contents(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
return "testing registeration email body text";
}
add_filter ("ws_plugin__s2member_modification_notification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
{
print_r($vars);
file_put_contents(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
return "testing registeration email subject";
}
add_filter ("ws_plugin__s2member_modification_notification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
{
print_r($vars);
file_put_contents(WP_CONTENT_DIR."/debug.log", var_export($vars, true));
return "testing registeration email body text";
}
fyi i ensured that the write debug.log is working running it outside the filter and it was writing to the file fine.