Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: network_edit_site_nav_links

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1043       *     @type array $link_slug {
1044       *         An array of information about the individual link to a page.
1045       *
1046       *         $type string $label Label to use for the link.
1047       *         $type string $url   URL, relative to `network_admin_url()` to use for the link.
1048       *         $type string $cap   Capability required to see the link.
1049       *     }
1050       * }
1051       */
1052      $links = apply_filters(
1053           'network_edit_site_nav_links',
1054           array(
1055                'site-info'     => array(
1056                     'label' => __( 'Info' ),
1057                     'url'   => 'site-info.php',
1058                     'cap'   => 'manage_sites',
1059                ),
1060                'site-users'    => array(
1061                     'label' => __( 'Users' ),