← Back
Editing: membership-note.php
<?php /** * WooCommerce Memberships * * This source file is subject to the GNU General Public License v3.0 * that is bundled with this package in the file license.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.html * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@skyverge.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade WooCommerce Memberships to newer * versions in the future. If you wish to customize WooCommerce Memberships for your * needs please refer to https://docs.woocommerce.com/document/woocommerce-memberships/ for more information. * * @author SkyVerge * @copyright Copyright (c) 2014-2026, SkyVerge, Inc. (info@skyverge.com) * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 */ defined( 'ABSPATH' ) or exit; /** * Membership note email * * @type string $email_heading Email heading * @type string $membership_note Membership note * @type string $additional_content Additional content to be added to the email * @type \WC_Memberships_User_Membership $user_membership User Membership * * @version 1.25.0 * @since 1.0.0 */ echo $email_heading . "\n\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo esc_html__( 'Hello, a note has just been added to your membership:', 'woocommerce-memberships' ) . "\n\n"; echo "----------\n\n"; echo wptexturize( $membership_note ) . "\n\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo "----------\n\n"; if ( $additional_content ) { echo wptexturize( $additional_content ) . "\n\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo (string) apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text', '' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
Save File
Cancel