[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/includes/ -> menu.php (summary)

Build Administration Menu.

File Size: 383 lines (10 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  add_cssclass()
  add_menu_classes()
  sort_menu()

Functions
Functions that are not part of a class:

add_cssclass( $class_to_add, $classes )   X-Ref
Adds a CSS class to a string.

param: string $class_to_add The CSS class to add.
param: string $classes      The string to add the CSS class to.
return: string The string with the CSS class added.

add_menu_classes( $menu )   X-Ref
Adds CSS classes for top-level administration menu items.

The list of added classes includes `.menu-top-first` and `.menu-top-last`.

param: array $menu The array of administration menu items.
return: array The array of administration menu items with the CSS classes added.

sort_menu( $a, $b )   X-Ref

param: array $a
param: array $b
return: int



Generated : Tue Dec 24 08:20:01 2024 Cross-referenced by PHPXref