filtrod 4.4.0
pre_get_document_title
Opis — z kodu źródłowego
Filters the document title before it is generated.
Passing a non-empty value will short-circuit wp_get_document_title(), returning that value instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$title | string | The document title. Default empty string. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_get_document_title', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'pre_get_document_title', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii