This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class MaraleWPTaoNFC { | |
public static function pre_user_email_wpfilter( $raw_email ) { | |
$email = sanitize_email($raw_email); | |
if ( isset($_REQUEST['loginFacebook']) && $_REQUEST['loginFacebook'] == '1' | |
&& !email_exists( $email ) ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class MaraleAutocompleteOrders { | |
public static function wc_booking_complete_action11( $booking_id ) { | |
if ( 'wc-booking-complete' !== current_action() ) { | |
return; | |
} | |
$booking = get_wc_booking( $booking_id ); | |
if ( 'complete' === $booking->get_status() ) { | |
$order_id = $booking->get_order_id(); | |
static::maybe_complete_order($order_id); |