process_text_diff_html

FILTER wp-includes\class-wp-text-diff-renderer-table.php (ligne 213) github
Contextually filters a diffed line. Filters TextDiff processing of diffed line. By default, diffs are processed with htmlspecialchars. Use this filter to remove or change the processing. Passes a context indicating if the line is added, deleted or unchanged.

Paramètres

Entrée :
$processed_line, $line, 'added'
Sortie :
@param string $processed_line The processed diffed line.
@param string $line           The unprocessed diffed line.
@param string $context        The line context. Values are 'added', 'deleted' or 'unchanged'.

Utilisation

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

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

Actualités

Chargement des actualités...