Skip to content

Instantly share code, notes, and snippets.

@panoslyrakis
Created February 16, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panoslyrakis/59d4e91c176f9ece823289ce5d6e9cd0 to your computer and use it in GitHub Desktop.
Save panoslyrakis/59d4e91c176f9ece823289ce5d6e9cd0 to your computer and use it in GitHub Desktop.
Appointments+ Cancel Link
@panoslyrakis
Copy link
Author

Adds a cancel link in notifications. *Please read the instructions in plugin file before usage

/**

  • ========== INSTRUCTIONS ==========
    1. In your wp-config file add: define( 'APP_ALLOW_CANCEL', true );
    1. Create a new page in your admin and add this shortcode: [app_cancel_page]
    1. Get the page id that you add the shortcode and replace 'null' at line 45 of this file with that id
    1. Use the APP_RM_LINK placeholder in your notification messages instead of CANCEL
      */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment