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?

6666 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 change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page
  • Tehnical: Redirect to Page Not found/ White screen on listing submission or edit
  • Technical – Invoices from My Bookings

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 404. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

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