Created
September 25, 2020 06:51
-
-
Save rafsuntaskin/ade7e975bb9265e8cc0ccd9f0c33cf25 to your computer and use it in GitHub Desktop.
Add notice for PayPal email save on Payment Form for Community Tickets
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 | |
add_action( 'tribe_community_tickets_before_the_payment_options', function () { | |
if ( ! isset( $_POST['paypal_account_email'] ) ) { | |
return; | |
} | |
$meta = Tribe__Events__Community__Tickets__Payment_Options_Form::get_meta( get_current_user_id() ); | |
if ( $meta['paypal_account_email'] === $_POST['paypal_account_email'] ) { | |
?> | |
<div class="tribe-payment-notice tribe-payment-notice-update"> | |
<p>Email is Updated</p> | |
</div> | |
<?php | |
}; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment