manage_sites_action_links WordPress Action Hook

The manage_sites_action_links hook allows you to add custom links to the site management page in the WordPress admin. This can be useful for adding links to custom settings pages or for providing access to other tools for managing your site.

apply_filters( 'manage_sites_action_links', string[] $actions, int $blog_id, string $blogname ) #

Filters the action links displayed for each site in the Sites list table.


Description

The ‘Edit’, ‘Dashboard’, ‘Delete’, and ‘Visit’ links are displayed by default for each site. The site’s status determines whether to show the ‘Activate’ or ‘Deactivate’ link, ‘Unarchive’ or ‘Archive’ links, and ‘Not Spam’ or ‘Spam’ link for each site.


Top ↑

Parameters

$actions

(string[])An array of action links to be displayed.

$blog_id

(int)The site ID.

$blogname

(string)Site path, formatted depending on whether it is a sub-domain or subdirectory multisite installation.


Top ↑

Source

File: wp-admin/includes/class-wp-ms-sites-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.