WP HOOKS
filtrod 2.3.0

admin_body_class

Args 1Plik wp-admin/admin-header.phpDokumentacja WP ↗

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:

  1. $classes is a space-separated string of class names instead of an array.
  2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed.

Parametry

ParametrTypOpis
$classesstringSpace-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
}

Popularne w tej kategorii