apply_filters( ‘manage_sites_action_links’, string[] $actions, int $blog_id, string $blogname )

In this article

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.

Parameters

$actionsstring[]
An array of action links to be displayed.
$blog_idint
The site ID.
$blognamestring
Site path, formatted depending on whether it is a sub-domain or subdirectory multisite installation.

Source

$actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.