filtrod 2.0.5
comment_post_redirect
Opis — z kodu źródłowego
Filters the location URI to send the commenter after posting.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$location | string | The 'redirect_to' URI sent via $_POST. |
$comment | \WP_Comment | Comment object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_post_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_post_redirect', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii