Filters the invalid password message shown on password-protected posts. The filter is only applied if the post is password-protected.
__( 'Invalid password.'
Sortie :
@param string $text The message shown to users when entering an invalid password. @param WP_Post $post Post object.
// Modifier la valeur avec le filtre 'the_password_form_incorrect_password'
add_filter('the_password_form_incorrect_password', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(__( 'Invalid password.') {
// Modifier la valeur
return __( 'Invalid password.';
}
Chargement des actualités...