Email verification window

Hello John,

This feature was included by the wordpress developers in version 5.3, it basically prevents you from forgetting your password and email and being left out of your website without having access to administration, although you can disable it or change the frequency in which this message is displayed, to do this:

Disable it completely

  • Enter cpanel → Public_html → wp-content → Themes → Your_Theme → functions.php

once you are in this file you right click and edit, in the code that shows you that file you go to the end of everything and add the following code

// Disable administration email verification
add_filter( ‘admin_email_check_interval’, ‘__return_false’ );

Disable for a specific user

  • Enter cpanel → Public_html → wp-content → Themes → Your_Theme → functions.php

once you are in this file you right click and edit, in the code that shows you that file you go to the end of everything and add the following code

// Restrict users allowed to verify administration email
add_filter( ‘admin_email_check_interval’, function( $interval ) {
if ( in_array( $_POST, array( ‘{{USERNAME}}’ ) ) ) {
return false;
} else {
return $interval;
}
} );

Remember to modify the value that is in the code that says NOMBRE_DE_USUARIO, here is the name of the user that will disable the option

Change the frequency of appearance

  • Enter cpanel → Public_html → wp-content → Themes → Your_Theme → functions.php

once you are in this file you right click and edit, in the code that shows you that file you go to the end of everything and add the following code

See also  Make images change color when mouse is hovered

// Set the frequency with which WordPress requests administration email verification
add_filter( ‘admin_email_check_interval’, function( $interval ) {
return TIME_IN_SECONDS;
} );

When modifying the TIME_IN_SECONDS value, you have to enter as indicated by the time in seconds so that they are taken by the wordpress

NOTE: Always remember to make a backup on your machine or on the same server of the file you are editing in case something goes wrong, you have a backup that you can upload again and solve the problem

Greetings 🖐️

AnswerQuote

Answered : 05/22/2020 2:18 pm

Loading Facebook Comments ...
Loading Disqus Comments ...