comment_max_links_url

FILTER wp-includes\comment.php (ligne 65) github
Filters the number of links found in a comment.

Paramètres

Entrée :
$num_links, $url, $comment
Sortie :
@param int    $num_links The number of links found.
@param string $url       Comment author's URL. Included in allowed links total.
@param string $comment   Content of the comment.

Utilisation

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

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

Actualités

Chargement des actualités...