Version Description
(2020-06-29) = - Fix for notifications not working with deposits turned on
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.1.13 |
Comparing to | |
See all releases |
Code changes from version 2.1.12 to 2.1.13
- includes/Notifications.class.php +1 -0
- includes/template-functions.php +4 -0
- readme.txt +3 -0
- restaurant-reservations.php +1 -1
includes/Notifications.class.php
CHANGED
@@ -46,6 +46,7 @@ class rtbNotifications {
|
|
46 |
// Hook into all events that require notifications
|
47 |
$hooks = array(
|
48 |
'rtb_insert_booking' => array( $this, 'new_submission' ), // Booking submitted
|
|
|
49 |
'rtb_confirmed_booking' => array( $this, 'new_confirmed_submission' ), // Booking confirmed
|
50 |
'pending_to_confirmed' => array( $this, 'pending_to_confirmed' ), // Booking confirmed
|
51 |
'pending_to_closed' => array( $this, 'pending_to_closed' ), // Booking can not be made
|
46 |
// Hook into all events that require notifications
|
47 |
$hooks = array(
|
48 |
'rtb_insert_booking' => array( $this, 'new_submission' ), // Booking submitted
|
49 |
+
'rtb_booking_paid' => array( $this, 'new_submission' ), // Booking deposit paid
|
50 |
'rtb_confirmed_booking' => array( $this, 'new_confirmed_submission' ), // Booking confirmed
|
51 |
'pending_to_confirmed' => array( $this, 'pending_to_confirmed' ), // Booking confirmed
|
52 |
'pending_to_closed' => array( $this, 'pending_to_closed' ), // Booking can not be made
|
includes/template-functions.php
CHANGED
@@ -353,6 +353,8 @@ function rtb_process_stripe_payment() {
|
|
353 |
|
354 |
$booking->insert_post_data();
|
355 |
|
|
|
|
|
356 |
// redirect on successful payment
|
357 |
$redirect = add_query_arg(
|
358 |
array(
|
@@ -483,6 +485,8 @@ function rtb_handle_paypal_ipn() {
|
|
483 |
$booking->determine_status( true );
|
484 |
|
485 |
$booking->insert_post_data();
|
|
|
|
|
486 |
|
487 |
if ( DEBUG == true ) {
|
488 |
error_log(date('[Y-m-d H:i e] '). "Verified IPN: $req ". PHP_EOL, 3, LOG_FILE);
|
353 |
|
354 |
$booking->insert_post_data();
|
355 |
|
356 |
+
do_action( 'rtb_booking_paid', $booking );
|
357 |
+
|
358 |
// redirect on successful payment
|
359 |
$redirect = add_query_arg(
|
360 |
array(
|
485 |
$booking->determine_status( true );
|
486 |
|
487 |
$booking->insert_post_data();
|
488 |
+
|
489 |
+
do_action( 'rtb_booking_paid', $booking );
|
490 |
|
491 |
if ( DEBUG == true ) {
|
492 |
error_log(date('[Y-m-d H:i e] '). "Verified IPN: $req ". PHP_EOL, 3, LOG_FILE);
|
readme.txt
CHANGED
@@ -196,6 +196,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
196 |
|
197 |
== Changelog ==
|
198 |
|
|
|
|
|
|
|
199 |
= 2.1.12 (2020-06-29) =
|
200 |
- Corrects issue with deleting tables and changing min. and max. people values for tables using the up and down arrows
|
201 |
|
196 |
|
197 |
== Changelog ==
|
198 |
|
199 |
+
= 2.1.13 (2020-06-29) =
|
200 |
+
- Fix for notifications not working with deposits turned on
|
201 |
+
|
202 |
= 2.1.12 (2020-06-29) =
|
203 |
- Corrects issue with deleting tables and changing min. and max. people values for tables using the up and down arrows
|
204 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
+
* Version: 2.1.13
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|