WP HOOKS
filtrod 4.1.0

process_text_diff_html

Args 3Plik wp-includes/class-wp-text-diff-renderer-table.phpDokumentacja WP ↗

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

ParametrTypOpis
$processed_linestringThe processed diffed line.
$linestringThe unprocessed diffed line.
$contextstringThe 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
}

Popularne w tej kategorii