Created
March 30, 2015 16:30
-
-
Save JudeRosario/d7b3101fa85c79c2157e to your computer and use it in GitHub Desktop.
Set Custom Appointment Cancel Link
This file contains 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
add_action('app_confirmation_message', 'custom_cancellation_link' , 1 , 2 ); | |
add_action('app_reminder_message', 'custom_cancellation_link' , 1 , 2); | |
// Hooks really early and replaces the cancel link | |
function add_cancel_link( $text, $app_id ) { | |
// Put your link here | |
$link = 'www.example.com/cancel' ; | |
return str_replace( 'CANCEL', $link , $text ); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy/paste the code into the
functions.php
file of your child theme or a site specific plugin if you use one. Remember to replace the$link
variable with the Cancel Appointments page