filtrod 2.0.0
wp_title
Opis — z kodu źródłowego
Filters the text of the page title.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$title | string | Page title. |
$sep | string | Title separator. |
$seplocation | string | Location of the separator (either 'left' or 'right'). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_title', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_title', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii