theme_action_links_{$stylesheet} WordPress Action Hook

The theme_action_links_{$stylesheet} allows you to add additional action links to the theme. These links can be used to perform various actions such as installing or activating a theme.

apply_filters( "theme_action_links_{$stylesheet}", string[] $actions, WP_Theme $theme, string $context ) #

Filters the action links of a specific theme in the Multisite themes list table.


Description

The dynamic portion of the hook name, $stylesheet, refers to the directory name of the theme, which in most cases is synonymous with the template name.


Top ↑

Parameters

$actions

(string[])An array of action links.

$theme

(WP_Theme)The current WP_Theme object.

$context

(string)Status of the theme, one of 'all', 'enabled', or 'disabled'.


Top ↑

Source

File: wp-admin/includes/class-wp-ms-themes-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.