WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1055 | * @type array $link_slug { |
1056 | * An array of information about the individual link to a page. |
1057 | * |
1058 | * $type string $label Label to use for the link. |
1059 | * $type string $url URL, relative to `network_admin_url()` to use for the link. |
1060 | * $type string $cap Capability required to see the link. |
1061 | * } |
1062 | * } |
1063 | */ |
1064 | $links = apply_filters( |
1065 | 'network_edit_site_nav_links', |
1066 | array( |
1067 | 'site-info' => array( |
1068 | 'label' => __( 'Info' ), |
1069 | 'url' => 'site-info.php', |
1070 | 'cap' => 'manage_sites', |
1071 | ), |
1072 | 'site-users' => array( |
1073 | 'label' => __( 'Users' ), |