[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Build Administration Menu.

File Size: 367 lines (10 kb)
Included or required:0 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.

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

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`.

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

sort_menu( $a, $b )   X-Ref

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



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1