Filters the list of CSS body class names for the current post or page.
$post = null
Sortie :
@param string[] $classes An array of body class names. @param string[] $css_class An array of additional class names added to the body. @param int|WP_Post|null $post An optional post. Global $post used if not provided. @return bool false if a password is not required or the correct password cookie is present, true otherwise.
// Utilisation de la fonction post_password_required
$result = post_password_required($post = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...