Filters the HTML output for the protected post password form. If modifying the password field, please note that the WordPress database schema limits the password field to 255 characters regardless of the value of the `minlength` or `maxlength` attributes or other validation that may be added to the input. @since 2.7.0 @since 5.8.0 Added the `$post` parameter. @since 6.8.0 Added the `$invalid_password` parameter. @param string $output The password form HTML output. @param WP_Post $post Post object. @param string $invalid_password The invalid password message.
$output, $post, $invalid_password
Sortie :
@param string $output The password form HTML output. @param WP_Post $post Post object. @param string $invalid_password The invalid password message.
// Modifier la valeur avec le filtre 'the_password_form'
add_filter('the_password_form', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($output) {
// Modifier la valeur
return $output;
}
Chargement des actualités...