I have this function:
function generic_notify($subject = "notify triggered", $message = "<p>Generic notification</p>", $to = "pavel.janicek@mydomain.mydomain"){
EDD()->emails->send( $to, $subject, $message );
}
In some cases, I am completely fine to just call generic_notify();
and know that some function was called, because the above will send me mail.
In other cases, I would like to just change message, or just subject or send it to other email.
If I wanted to just change the message, is it possible? And if yes, how?