258 | | 'name' => false, // Display name for the nav item |
259 | | 'slug' => false, // URL slug for the nav item |
260 | | 'parent_slug' => false, // URL slug of the parent nav item |
261 | | 'parent_url' => false, // URL of the parent item |
262 | | 'item_css_id' => false, // The CSS ID to apply to the HTML of the nav item |
263 | | 'user_has_access' => true, // Can the logged in user see this nav item? |
264 | | 'no_access_url' => '', |
265 | | 'site_admin_only' => false, // Can only site admins see this nav item? |
266 | | 'position' => 90, // Index of where this nav item should be positioned |
267 | | 'screen_function' => false, // The name of the function to run when clicked |
268 | | 'link' => '', // The link for the subnav item; optional, not usually required. |
269 | | 'show_in_admin_bar' => false, // Show the Manage link in the current group's "Edit" Admin Bar menu |
| 267 | 'name' => false, // Display name for the nav item |
| 268 | 'slug' => false, // URL slug for the nav item |
| 269 | 'parent_slug' => false, // URL slug of the parent nav item |
| 270 | 'parent_url' => false, // URL of the parent item |
| 271 | 'item_css_id' => false, // The CSS ID to apply to the HTML of the nav item |
| 272 | 'user_has_access' => true, // Can the logged in user visit this nav item? |
| 273 | 'no_access_url' => '', |
| 274 | 'user_can_see_nav_item' => true, // Can the logged in user see this nav item? |
| 275 | 'site_admin_only' => false, // Can only site admins see this nav item? |
| 276 | 'position' => 90, // Index of where this nav item should be positioned |
| 277 | 'screen_function' => false, // The name of the function to run when clicked |
| 278 | 'link' => '', // The link for the subnav item; optional, not usually required. |
| 279 | 'show_in_admin_bar' => false, // Show the Manage link in the current group's "Edit" Admin Bar menu |
296 | | 'name' => $name, |
297 | | 'link' => trailingslashit( $link ), |
298 | | 'slug' => $slug, |
299 | | 'css_id' => $item_css_id, |
300 | | 'position' => $position, |
301 | | 'user_has_access' => $user_has_access, |
302 | | 'no_access_url' => $no_access_url, |
303 | | 'screen_function' => &$screen_function, |
304 | | 'show_in_admin_bar' => (bool) $r['show_in_admin_bar'], |
| 306 | 'name' => $name, |
| 307 | 'link' => trailingslashit( $link ), |
| 308 | 'slug' => $slug, |
| 309 | 'css_id' => $item_css_id, |
| 310 | 'position' => $position, |
| 311 | 'user_has_access' => $user_has_access, |
| 312 | 'user_can_see_nav_item' => $user_can_see_nav_item, |
| 313 | 'no_access_url' => $no_access_url, |
| 314 | 'screen_function' => &$screen_function, |
| 315 | 'show_in_admin_bar' => (bool) $r['show_in_admin_bar'], |