wppaste
WordPress

apply_filters( 'theme_action_links', string[] $actions, WP_Theme $theme, string $context )

Since
2.8.0
Filters the action links displayed for each theme in the Multisite themes list table.

Description

The action links displayed are determined by the theme's status, and which Multisite themes list table is being displayed - the Network themes list table (themes.php), which displays all installed themes, or the Site themes list table (site-themes.php), which displays the non-network enabled themes when editing a site in the Network admin.

The default action links for the Network themes list table include 'Network Enable', 'Network Disable', and 'Delete'.

The default action links for the Site themes list table include 'Enable', and 'Disable'.

Compatibility

WordPress
since 2.8.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.
$themeWP_Theme
The current WP_Theme object.
$contextstring
Status of the theme, one of 'all', 'enabled', or 'disabled'.

Where this hook fires · 2

  • wp-admin/includes/class-wp-ms-themes-list-table.php:687WP_MS_Themes_List_Table::column_name()
  • wp-admin/includes/class-wp-themes-list-table.php:240WP_Themes_List_Table::display_rows()

Source code

		 * @since 2.8.0		 *		 * @param string[] $actions An array of action links.		 * @param WP_Theme $theme   The current WP_Theme object.		 * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.		 */		$actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); 		/**		 * Filters the action links of a specific theme in the Multisite themes		 * list table.		 *		 * The dynamic portion of the hook name, `$stylesheet`, refers to the

Changelog

Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 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.