Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 6, 2022 20:33
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 yuriinalivaiko/ee009633277e119f1b1b7309e7360b47 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/ee009633277e119f1b1b7309e7360b47 to your computer and use it in GitHub Desktop.
Hook um_after_email_template_part
<?php
/**
* Hook: um_after_email_template_part
*
* Type: action
*
* Description: Fires after email template loading.
* May be used to display custom content below the main email message.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-mail.php#L242
* @link https://docs.ultimatemember.com/article/1015-umafteremailtemplatepart
*
* @package um\core
* @see um\core\Mail::get_email_template()
* @since 2.0
* @deprecated since version 3.0
*
* @param string $template Template key.
* @param string $template_path Template location.
* @param array $args Template settings.
*/
function my_after_email_template_part( $template, $template_path, $args ) {
// your code here.
}
add_action( 'um_after_email_template_part', 'my_after_email_template_part', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment