theme_action_links
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'theme_action_links', string[] $actions, WP_Theme $theme, string $context )
Описание
Отображаемые ссылки действий зависят от статуса темы и от того, какая таблица тем мультисайта показывается — таблица сетевых тем (themes.php), где отображаются все установленные темы, или таблица тем сайта (site-themes.php), где отображаются темы, не включённые на уровне сети, при редактировании сайта в администрировании сети.
Ссылки действий по умолчанию для таблицы сетевых тем включают 'Network Enable', 'Network Disable' и 'Delete'.
Ссылки действий по умолчанию для таблицы тем сайта включают 'Enable' и 'Disable'.
Оригинал (английский)
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’.
Фильтруемое значение
Параметры
$actions
string[]
обязательный
$theme
WP_Theme
обязательный
$context
string
обязательный
Исходный код
wp-admin/includes/class-wp-ms-themes-list-table.php:687
$actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context );
История изменений
| Версия | Описание |
|---|---|
| 2.8.0 | Introduced. |

