WP HOOKS
filtrod 2.8.0

menu_order

Args 1Plik wp-admin/includes/menu.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the order of administration menu items.

A truthy value must first be passed to the {@see 'custom_menu_order'} filter for this filter to work. Use the following to enable custom menu ordering: add_filter( 'custom_menu_order', '__return_true' );

Parametry

ParametrTypOpis
$menu_orderarrayAn ordered array of menu items.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'menu_order', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii