WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Technical: Where to change email parameters?

Technical: Where to change email parameters?

6771 views

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

Technical how to

Related Articles

  • How to Disable WordPress Image Compression and Preserve Original Quality
  • How to Change the Default Categories Icon from Listing Card Unit
  • How to change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page

HELP CATEGORIES

  • 71. General
  • 102. Installation & Basic Setup
  • 393. How Booking Works
  • 20Advanced Search
  • 19Elementor Free & WP Rentals Studio
  • 13Email Notifications
  • 10FAQ
  • 14Installation FAQ
  • 10Menu Options
  • 27Multi-Languages - 3rd party
  • 32Owner & Renter
  • 9Page Templates
  • 24Property / Listing
  • 21Shortcodes
  • 4Supported Maps
  • 97Technical how to
  • 5Third Party plugins
  • 3Translation
  • 3WordPress Blog Post
  • 13WordPress Widgets
  • 12WP Rentals Payments
  • 78WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API