filtrod 2.9.0
redirect_post_location
Opis — z kodu źródłowego
Filters the post redirect destination URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$location | string | The destination URL. |
$post_id | int | The post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'redirect_post_location', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'redirect_post_location', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii