Problem: I would like to change the following two text strings associated with Toolset's login forms:
1. ERROR: The password you entered for the username **USERNAME** is incorrect.
2. Unknown Error.
Solution: You can use the following function to override the two error messages you mentioned for the login form shortcode:
add_filter( 'gettext', 'tssupp_login_errors', 20, 3 );
function tssupp_login_errors( $translated_text, $text, $domain ) {
// change the text here to customize the messages.
$incorrect_msg = "The information you entered is incorrect.";
$unknown_msg = "There was an unexpected error, please try again.";
// do not edit below this line.
if ( !is_admin() ) {
switch ( $translated_text ) {
case 'The password you entered for the username %s is incorrect.' :
$translated_text = $incorrect_msg;
break;
case 'Unknown error.' :
$translated_text = $unknown_msg;
break;
}
}
return $translated_text;
}
Viendo 11 debates - del 1 al 11 (de un total de 11)
Problemas conocidos y sus soluciones
En Toolset erratas, documentamos problemas conocidos y sus soluciones. Ahorre tiempo consultando allí primero y viendo si el suyo es un problema conocido. Mantenemos la lista corta. Hacemos lo mejor que podemos para resolver todos los problemas conocidos con cada lanzamiento de los plugines de Toolset.
Política de soporte
Nuestro personal le ayudará a usar los plugines de Toolset correctamente, le proporcionará la información que necesite, le ayudará a resolver problemas y lo asesorará con respecto a las mejores prácticas.
Sírvase asegurarse de incluir solamente un tema en cada solicitud de soporte.