filtrod 6.4.0
wp_loading_optimization_force_header_contexts
Opis — z kodu źródłowego
Filters the header-specific contexts.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$default_header_enforced_contexts | array | Map of contexts for which elements should be considered in the header of the page, as $context => $enabled pairs. The $enabled should always be true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_loading_optimization_force_header_contexts', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_loading_optimization_force_header_contexts', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii