@daytoma
Edit the email template and look at the {password_reset_link} placeholder.
Don’t add any http:// because the placeholder will give you the https://
Thanks for the reply. I go into the template and follow your instructions but it doesn’t work. I go into the link again and the http appears automatically….
@daytoma
You can try this code snippet, which will remove the http:// if being added by UM.
add_filter( 'um_template_tags_replaces_hook', 'add_replace_placeholder_http', 999, 1 );
function add_replace_placeholder_http( $replace_placeholders ) {
foreach( $replace_placeholders as $key => $replace_placeholder ) {
if ( str_contains( $args, 'http://https://' )) {
$replace_placeholder[$key] = str_replace( 'http://https://', 'https://', $replace_placeholder[$key] );
}
}
return $replace_placeholders;
}
You install the code snippet by adding it
to your active theme’s functions.php file
or use the “Code Snippets” Plugin
https://wordpress.org/plugins/code-snippets/
thank you!!! thank you!!! thank you!!!
the code snippets with your code + your first answer in the template mail.
-
This reply was modified 1 year, 4 months ago by
daytoma.
@daytoma
Code snippet update
add_filter( 'um_template_tags_replaces_hook', 'add_replace_placeholder_http', 999, 1 );
function add_replace_placeholder_http( $replace_placeholders ) {
foreach( $replace_placeholders as $key => $replace_placeholder ) {
if ( str_contains( $replace_placeholder, 'http://https://' )) {
$replace_placeholders[$key] = str_replace( 'http://https://', 'https://', $replace_placeholders[$key] );
}
}
return $replace_placeholders;
}