filtrod 4.1.0
revision_text_diff_options
Opis — z kodu źródłowego
Filters revisions text diff options.
Filters the options passed to wp_text_diff() when viewing a post revision.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | { Associative array of options to pass to wp_text_diff(). @type bool $show_split_view True for split view (two columns), false for un-split view (single column). Default true. } |
$field | string | The current revision field. |
$compare_from | \WP_Post | The revision post to compare from. |
$compare_to | \WP_Post | The revision post to compare to. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'revision_text_diff_options', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'revision_text_diff_options', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii