filtrod 3.7.0
flush_rewrite_rules_hard
Opis — z kodu źródłowego
Filters whether a "hard" rewrite rule flush should be performed when requested.
A "hard" flush updates .htaccess (Apache) or web.config (IIS).
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$hard | bool | Whether to flush rewrite rules "hard". Default true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'flush_rewrite_rules_hard', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'flush_rewrite_rules_hard', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii