filtrod 4.1.0
process_text_diff_html
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$processed_line | string | The processed diffed line. |
$line | string | The unprocessed diffed line. |
$context | string | The line context. Values are 'added', 'deleted' or 'unchanged'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'process_text_diff_html', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'process_text_diff_html', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii