filtrod 2.8.0
page_css_class
Opis — z kodu źródłowego
Filters the list of CSS classes to include with each page item in the list.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$css_class | string[] | An array of CSS classes to be applied to each list item. |
$page | \WP_Post | Page data object. |
$depth | int | Depth of page, used for padding. |
$args | array | An array of arguments. |
$current_page_id | int | ID of the current page. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_css_class', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_css_class', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii