filtrod 2.3.0
admin_body_class
Opis — z kodu źródłowego
Filters the CSS classes for the body tag in the admin.
This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters in two important ways:
$classesis a space-separated string of class names instead of an array.- Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$classes | string | Space-separated list of CSS classes. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'admin_body_class', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'admin_body_class', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii