Created
May 17, 2022 20:32
-
-
Save joseconti/bbc198d5218552ede08d03c5b43e41fd to your computer and use it in GitHub Desktop.
Modificar correo de envío de solicitud de token.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'redsys_mail_add_token', 'datos_modificados_redsys_mail_add_token' ); | |
function datos_modificados_redsys_mail_add_token( $data ) { | |
$name = $data['name']; | |
$last_name = $data['last_name']; | |
$site_title = $data['site_title']; | |
$subject = $data['subject']; | |
$body = $data['body']; | |
$body = $data['header']; | |
$user_link = $data['user_link']; | |
$token_type = $data['token_type']; | |
$data['subject'] = 'Aquí el asusto del correo que se envía'; | |
$data['body'] = '<p>Este es un ejemplo de texto</p><p>Puedes utilizar HTML</p><p>Actuérdate de añadir el enlace ' . $user_link . ' para que pueda añadir la tarjeta'; | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Este código solo sirve para mi plugin WooCommerce Redsys Gateway
https://plugins.joseconti.com/product/plugin-woocommerce-redsys-gateway/