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

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

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

sort_menu( $a, $b )   X-Ref

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



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1