[CoursePress Pro] Function to add discussion notification

Hello I have this code, and in the last versions of coursepress work great, I just added to the new_discussion_page.php but after the update I can\'t find the function that create the discussion to add this code and receive a notification when a discussion is added, could you please help me?:

$email = \"email@email.com\";
$email_subject = \"Nueva Pregunta en el sitio\";
ob_start(); ?>
Tienes una nueva pregunta en el sitio:
get_discussion_slug()) ?>