comment_notification_notify_author

FILTER wp-includes\pluggable.php (ligne 1794) github
Filters whether to notify comment authors of their comments on their own posts. By default, comment authors aren't notified of their comments on their own posts. This filter allows you to override that.

Paramètres

Entrée :
false, $comment->comment_ID
Sortie :
@param bool   $notify     Whether to notify the post author of their own comment.
@param string $comment_id The comment ID as a numeric string.

Utilisation

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

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

Actualités

Chargement des actualités...