Filters the comment author's browser user agent before it is set.
( isset( $commentdata['comment_agent']
Sortie :
@param string $comment_agent The comment author's browser user agent.
// Modifier la valeur avec le filtre 'pre_comment_user_agent'
add_filter('pre_comment_user_agent', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(( isset( $commentdata['comment_agent']) {
// Modifier la valeur
return ( isset( $commentdata['comment_agent'];
}
Chargement des actualités...