filtrod 2.1.0
comment_edit_redirect
Opis — z kodu źródłowego
Filters the URI the user is redirected to after editing a comment in the admin.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$location | string | The URI the user will be redirected to. |
$comment_id | int | The ID of the comment being edited. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_edit_redirect', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_edit_redirect', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii