filtrod 2.5.0
got_rewrite
Opis — z kodu źródłowego
Filters whether Apache and mod_rewrite are present.
This filter was previously used to force URL rewriting for other servers, like nginx. Use the {@see 'got_url_rewrite'} filter in got_url_rewrite() instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$got_rewrite | bool | Whether Apache and mod_rewrite are present. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'got_rewrite', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'got_rewrite', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii