the_password_form_incorrect_password

FILTER wp-includes\post-template.php (ligne 1799) github
Filters the invalid password message shown on password-protected posts. The filter is only applied if the post is password-protected.

Paramètres

Entrée :
__( 'Invalid password.'
Sortie :
@param string  $text The message shown to users when entering an invalid password.
@param WP_Post $post Post object.

Utilisation

// 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.';
}

Actualités

Chargement des actualités...