/**
 * Add default Give email template tags.
 *
 * @since 1.0
 */
function give_setup_email_tags()
{
    // Setup default tags array
    $email_tags = array(array('tag' => 'donation', 'description' => esc_html__('The donation form name, and the donation level (if applicable).', 'give'), 'function' => 'give_email_tag_donation'), array('tag' => 'form_title', 'description' => esc_html__('The donation form name.', 'give'), 'function' => 'give_email_tag_form_title'), array('tag' => 'amount', 'description' => esc_html__('The total donation amount with currency sign.', 'give'), 'function' => 'give_email_tag_amount'), array('tag' => 'price', 'description' => esc_html__('The total donation amount with currency sign.', 'give'), 'function' => 'give_email_tag_price'), array('tag' => 'name', 'description' => esc_html__('The donor\'s first name.', 'give'), 'function' => 'give_email_tag_first_name'), array('tag' => 'fullname', 'description' => esc_html__('The donor\'s full name, first and last.', 'give'), 'function' => 'give_email_tag_fullname'), array('tag' => 'username', 'description' => esc_html__('The donor\'s user name on the site, if they registered an account.', 'give'), 'function' => 'give_email_tag_username'), array('tag' => 'user_email', 'description' => esc_html__('The donor\'s email address.', 'give'), 'function' => 'give_email_tag_user_email'), array('tag' => 'billing_address', 'description' => esc_html__('The donor\'s billing address.', 'give'), 'function' => 'give_email_tag_billing_address'), array('tag' => 'date', 'description' => esc_html__('The date of the donation.', 'give'), 'function' => 'give_email_tag_date'), array('tag' => 'payment_id', 'description' => esc_html__('The unique ID number for this donation.', 'give'), 'function' => 'give_email_tag_payment_id'), array('tag' => 'receipt_id', 'description' => esc_html__('The unique ID number for this donation receipt.', 'give'), 'function' => 'give_email_tag_receipt_id'), array('tag' => 'payment_method', 'description' => esc_html__('The method of payment used for this donation.', 'give'), 'function' => 'give_email_tag_payment_method'), array('tag' => 'sitename', 'description' => esc_html__('Your site name.', 'give'), 'function' => 'give_email_tag_sitename'), array('tag' => 'receipt_link', 'description' => esc_html__('Adds a link so users can view their receipt directly on your website if they are unable to view it in the browser correctly.', 'give'), 'function' => 'give_email_tag_receipt_link'));
    // Apply give_email_tags filter
    $email_tags = apply_filters('give_email_tags', $email_tags);
    // Add email tags
    foreach ($email_tags as $email_tag) {
        give_add_email_tag($email_tag['tag'], $email_tag['description'], $email_tag['function']);
    }
}
/**
 * Adds a Custom "Magic" Tag
 * @description: This function creates a custom Give email template tag
 *
 * @param $payment_id
 */
function rum_wohh_add_magic_tag($payment_id)
{
    give_add_email_tag('wohh_magic_tag', 'This tag can be used to output conditional content in email notifications', 'rum_wohh_get_wohh_magic_tag_data');
}
/**
 * Adds a Custom "Engraved Message" Tag
 * @description: This function creates a custom Give email template tag
 *
 * @param $payment_id
 */
function my_custom_prefix_add_sample_referral_tag($payment_id)
{
    give_add_email_tag('Engraved', 'This outputs the Engraved Message', 'my_custom_prefix_get_donation_referral_data');
}