filtrod 4.1.0
wp_get_revision_ui_diff
Opis — z kodu źródłowego
Filters the fields displayed in the post revision diff UI.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | array[] | Array of revision UI fields. Each item is an array of id, name, and diff. |
$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( 'wp_get_revision_ui_diff', '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( 'wp_get_revision_ui_diff', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii