钩子文档

update_theme_complete_actions

💡 云策文档标注

概述

update_theme_complete_actions 是一个 WordPress 过滤器钩子,用于在单个主题更新后过滤可用的操作链接列表。它允许开发者自定义或修改这些链接。

关键要点

  • 这是一个过滤器钩子,用于修改主题更新后的操作链接。
  • 参数包括 $update_actions(操作链接数组)和 $theme(主题目录名)。
  • 在 Theme_Upgrader_Skin::after() 方法中使用,处理单个主题更新后的操作。
  • 自 WordPress 2.8.0 版本引入。

📄 原文内容

Filters the list of action links available following a single theme update.

Parameters

$update_actionsstring[]
Array of theme action links.
$themestring
Theme directory name.

Source

$update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme );

Changelog

Version Description
2.8.0 Introduced.