notify_post_author

FILTER wp-includes\comment.php (ligne 2485) github
Filters whether to send the post author new comment notification emails, overriding the site setting.

Paramètres

Entrée :
$maybe_notify, $comment_id
Sortie :
@param bool $maybe_notify Whether to notify the post author about the new comment.
@param int  $comment_id   The ID of the comment for the notification.

Utilisation

// Modifier la valeur avec le filtre 'notify_post_author'
add_filter('notify_post_author', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($maybe_notify) {
    // Modifier la valeur
    return $maybe_notify;
}

Actualités

Chargement des actualités...