“bdpwr_code_email_text” Filter with HTML
-
Hello !
First of all, thanks for this plugin, it’s incredibly usefull !
I have a little question though, concerning the content custom filter.
Is it possible to custom the visual aspect of the message, with HTML.
I tried to do this :
add_filter( 'bdpwr_code_email_text' , function( $text , $email , $code , $expiry ) { $text = "Password reset has been requested for the following email : " . $email .". Your reset password : " . $code . ". \n will expire at " . bdpwr_get_formatted_date( $expiry ) . "."; ob_start();?> <h1>Password reset</h1> <p><?php echo $text ?></p> <?php $html = ob_get_clean(); return html_entity_decode($html); }, 10 , 4 );
But all the HTML tags render as a string. Do you have any idea how to make this work ?
Thanks a lot !
Kevin.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘“bdpwr_code_email_text” Filter with HTML’ is closed to new replies.