WordPress 3.0 beta 1 documentation kindly provided to you by Hay Kranen
| [ Index ] |
PHP Cross Reference of WordPress 3.0 beta 1 |
|
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Source view] [Print] [Project Stats]
Navigation Menu template functions
| File Size: | 223 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| wp_nav_menu( $args = array() X-Ref |
| Displays a navigation menu. Optional $args contents: id - The menu id. Defaults to blank. slug - The menu slug. Defaults to blank. menu_class - CSS class to use for the div container of the menu list. Defaults to 'menu'. format - Whether to format the ul. Defaults to 'div'. fallback_cb - If the menu doesn't exists, a callback function will fire. Defaults to 'wp_page_menu'. before - Text before the link text. after - Text after the link text. link_before - Text before the link. link_after - Text after the link. echo - Whether to echo the menu or return it. Defaults to echo. show_home - If you set this argument, then it will display the link to the home page. The show_home argument really just needs to be set to the value of the text of the link. param: array $args Arguments |
| wp_get_nav_menu( $args = array() X-Ref |
| Returns a Navigation Menu. See wp_nav_menu() for args. param: array $args Arguments return: mixed $output False if menu doesn't exists, else, returns the menu. |
| wp_get_nav_menu_item( $menu_item, $context = 'frontend', $args = array() X-Ref |
| Returns the menu item formatted based on it's context. param: string $menu_item The menu item to format. param: string $context The context to which the menu item will be formatted to. param: string $args Optional. Args used for the 'template' context. return: string $output The menu formatted menu item. |
| Generated: Mon Apr 5 14:26:09 2010 | Cross-referenced by PHPXref 0.7 |