The send email function are in wprentals-core plugin in misc/emailfunctions.php file

There are several functions

  • wpestate_select_email_type – which selects the email type
  • wpestate_emails_filter_replace – replaces the placeholders (%invoice ) in
  • content wpestate_send_emails – actually sends email If you look into the
  • theme files for wpestate_select_email_type you will find around 32 occurrences for various scenarios

If you look into the theme files for wpestate_select_email_type  you will find around 32 occurrences for various scenarios.

It looks something like this

$arguments=array( ‘user_pass’ => $new_password, ‘user_login’ => $user_login, ); wpestate_select_email_type($user_email,’password_reseted’,$arguments);

In this case

$user_email – is where to send the email

‘password_reseted’ – is what email to send

$arguments – what placeholdes are used

In this example ‘user_login’ => $user_login, means that %user_login will be replaced with what is in variable $user_login.

To add new arguments for a specific email

1. Find where is the code for that email – search for wpestate_select_email_type – just look for the name of the second parameter – in this case ‘password_reseted’

2. In $arguments array add the new parameters and its value

How to change content for messages sent from contact owner

File to edit: wprentals/libs/ajax_functions_booking.php