Change the amount on the gift card email

Note: this requires the PW Gift Cards Pro version 1.343 or later. If you have an earlier version or the free version, you can override the email template manually.

To change the amount that is displayed on the gift card email, follow these steps:

1. Download the free Code Snippets plugin:
2. Create a new Snippet with the following code (or add this to your functions.php file if you are more comfortable with that instead):

function custom_pwgc_email_template_amount( $amount, $item_data ) {
    switch ( $item_data->amount ) {
        case '100':
            $amount = 'Gold';

        case '500':
            $amount = 'Diamond';

        case '1000':
            $amount = 'Platinum';

    return $amount;
add_filter( 'pwgc_email_template_amount', 'custom_pwgc_email_template_amount', 10, 2 );

To change the amount that is shown in the dropdown menu when purchasing the gift card, see this guide: