bdpwr_code_email_text filter error
-
Hello !
When I use the bdpwr_code_email_text like this :
add_filter( 'bdpwr_code_email_text' , function( $text , $email , $code , $expiry ) { $text = "Une réinitialisation du mot de passe a été demandée pour votre compte " . $email ." et votre code de réinitialisation du mot de passe est " . $code . ". \n Veuillez noter que ce code expirera à " . $expiry . "."; return $text; });
I get a fatal error :
2020/06/08 09:53:14 [error] 87451#87451: *9276 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /www/my_website/public/wp-includes/class-wp-hook.php on line 289 and exactly 4 expected in /www/my_website/public/wp-content/themes/mytheme-child/functions.php:495 Stack trace: #0 /www/my_website/public/wp-includes/class-wp-hook.php(289): {closure}('\n A password r...') #1 /www/my_website/public/wp-includes/plugin.php(206): WP_Hook->apply_filters('\n A password r...', Array) #2 /www/my_website/public/wp-content/plugins/bdvs-password-reset/inc/email/functions.php(57): apply_filters('bdpwr_code_emai...', '\n A password r...', 'michael...', '025371', 1591610294) #3 /www/my_website/public/wp-content/plugins/bdvs-password-reset/inc/class/class.user.php(53): bdpwr_send_password_reset_code_email('michael...', '025371', 1591610294)
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘bdpwr_code_email_text filter error’ is closed to new replies.