/**
 * Trigger the sending of a Test Email
 *
 * @since 1.5
 * @param array $data Paramaters sent from Settings page
 * @return void
 */
function edd_send_test_email($data)
{
    if (!wp_verify_nonce($data['_wpnonce'], 'edd-test-email')) {
        return;
    }
    // Send a test email
    edd_email_test_purchase_receipt();
}
/**
 * Trigger the sending of a Test Email
 *
 * @since 1.5
 * @param array $data Parameters sent from Settings page
 * @return void
 */
function edd_send_test_email($data)
{
    if (!wp_verify_nonce($data['_wpnonce'], 'edd-test-email')) {
        return;
    }
    // Send a test email
    edd_email_test_purchase_receipt();
    // Remove the test email query arg
    wp_redirect(remove_query_arg('edd_action'));
    exit;
}