apply_filters( 'network_edit_site_nav_links', array $links )
- Since
- 4.6.0
Filters the links that appear on site-editing network pages.
Description
Default links: 'site-info', 'site-users', 'site-themes', and 'site-settings'.
Compatibility
- WordPress
- since 4.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$linksarray- { An array of link data representing individual network admin pages.
@type array $link_slug { An array of information about the individual link to a page.
$type string $label Label to use for the link.
$type string $url URL, relative tonetwork_admin_url()to use for the link.
$type string $cap Capability required to see the link.
} }$link_slugarrayAn array of information about the individual link to a page. $type string $label Label to use for the link. $type string $url URL, relative tonetwork_admin_url()to use for the link. $type string $cap Capability required to see the link.
Where this hook fires · 1
wp-admin/includes/ms.php:1108network_edit_site_nav()
Source code
* $type string $label Label to use for the link. * $type string $url URL, relative to `network_admin_url()` to use for the link. * $type string $cap Capability required to see the link. * } * } */ $links = apply_filters( 'network_edit_site_nav_links', array( 'site-info' => array( 'label' => __( 'Info' ), 'url' => 'site-info.php', 'cap' => 'manage_sites',Changelog
Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.