apply_filters( 'manage_sites_action_links', string[] $actions, int $blog_id, string $blogname )
- Since
- 3.1.0
Filters the action links displayed for each site in the Sites list table.
Description
The 'Edit', 'Dashboard', 'Delete Permanently', and 'Visit' links are displayed by default for each site. The site's status determines whether to show the 'Remove Deletion Flag' or 'Flag for Deletion' link, 'Unarchive' or 'Archive' links, and 'Not Spam' or 'Spam' link for each site.
Compatibility
- WordPress
- since 3.1.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
$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.
Where this hook fires · 1
wp-admin/includes/class-wp-ms-sites-list-table.php:859WP_MS_Sites_List_Table::handle_row_actions()
Source code
* * @param string[] $actions An array of action links to be displayed. * @param int $blog_id The site ID. * @param string $blogname Site path, formatted depending on whether it is a sub-domain * or subdirectory multisite installation. */ $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname ); return $this->row_actions( $actions ); }}Changelog
Introduced in 3.1.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 6.9.7 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.